ITC pin numbers
Posted: Thu May 06, 2021 11:36 am
Hi,
I want to use PC0 (I2C3_SCL) and PC1 (I2C3_SDA) in an STM32 board for communication to an external RTC with the 'Wire' library. It seems that neither of the following definitions don't work:
or
Is there a simple way to define new pins?
Thanks in advance.
I want to use PC0 (I2C3_SCL) and PC1 (I2C3_SDA) in an STM32 board for communication to an external RTC with the 'Wire' library. It seems that neither of the following definitions don't work:
Code: Select all
Wire.begin();
#define SCL PC0
#define SDA PC1
Code: Select all
Wire.begin();
Wire.setSCL(PC0);
Wire.setSDA(PC1);
Thanks in advance.