Skip to content

Add WIRE_INTERFACES_COUNT define and fix SCL pins for opta analog and digital #480

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions variants/MINIMA/pins_arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,10 @@ static const uint8_t D15 = PIN_D15;

/****** WIRE CORE DEFINES ******/

#define WIRE_HOWMANY 1
#define WIRE_SDA_PIN 18 /* A4 */
#define WIRE_SCL_PIN 19 /* A5 */
#define WIRE_HOWMANY 1
#define WIRE_INTERFACES_COUNT WIRE_HOWMANY
#define WIRE_SDA_PIN 18 /* A4 */
#define WIRE_SCL_PIN 19 /* A5 */

static const uint8_t SDA = WIRE_SDA_PIN;
static const uint8_t SCL = WIRE_SCL_PIN;
Expand Down
7 changes: 4 additions & 3 deletions variants/MUXTO/pins_arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,10 @@ static const uint8_t A6 = PIN_A6;

/****** WIRE CORE DEFINES ******/

#define WIRE_HOWMANY 1
#define WIRE_SDA_PIN 20
#define WIRE_SCL_PIN 21
#define WIRE_HOWMANY 1
#define WIRE_INTERFACES_COUNT WIRE_HOWMANY
#define WIRE_SDA_PIN 20
#define WIRE_SCL_PIN 21

// TODO: removeme
#ifdef __cplusplus
Expand Down
11 changes: 6 additions & 5 deletions variants/NANOR4/pins_arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,12 @@ static const uint8_t D15 = PIN_D15;

/****** WIRE CORE DEFINES ******/

#define WIRE_HOWMANY 2
#define WIRE_SDA_PIN 18 /* A4 */
#define WIRE_SCL_PIN 19 /* A5 */
#define WIRE1_SDA_PIN 27
#define WIRE1_SCL_PIN 26
#define WIRE_HOWMANY 2
#define WIRE_INTERFACES_COUNT WIRE_HOWMANY
#define WIRE_SDA_PIN 18 /* A4 */
#define WIRE_SCL_PIN 19 /* A5 */
#define WIRE1_SDA_PIN 27
#define WIRE1_SCL_PIN 26

static const uint8_t SDA = WIRE_SDA_PIN;
static const uint8_t SCL = WIRE_SCL_PIN;
Expand Down
7 changes: 4 additions & 3 deletions variants/OPTA_ANALOG/pins_arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,11 @@ extern "C" unsigned int PINCOUNT_fn();
#define UART1_RX_PIN UART_RX
/* ************************** WIRE CORE DEFINES **************************** */
#define WIRE_HOWMANY 1
#define WIRE_SDA_PIN I2C_SDA
#define WIRE_SCL_PIN I2C_SCL
#define WIRE_INTERFACES_COUNT WIRE_HOWMANY
#define WIRE_SDA_PIN I2C_SDA
#define WIRE_SCL_PIN I2C_SCL
static const uint8_t SDA = WIRE_SDA_PIN;
static const uint8_t SCL = WIRE_SDA_PIN;
static const uint8_t SCL = WIRE_SCL_PIN;
/* *************************** SPI CORE DEFINES **************************** */
#define SPI_HOWMANY 1
#define PIN_SPI_MOSI SPI_MOSI
Expand Down
9 changes: 5 additions & 4 deletions variants/OPTA_DIGITAL/pins_arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,13 @@ static const uint8_t A15 = AN15;
#define UART1_RX_PIN UART_TX

/****** WIRE CORE DEFINES ******/
#define WIRE_HOWMANY 1
#define WIRE_SDA_PIN I2C_SDA
#define WIRE_SCL_PIN I2C_SCL
#define WIRE_HOWMANY 1
#define WIRE_INTERFACES_COUNT WIRE_HOWMANY
#define WIRE_SDA_PIN I2C_SDA
#define WIRE_SCL_PIN I2C_SCL

static const uint8_t SDA = WIRE_SDA_PIN;
static const uint8_t SCL = WIRE_SDA_PIN;
static const uint8_t SCL = WIRE_SCL_PIN;

/****** SPI CORE DEFINES ******/

Expand Down
19 changes: 10 additions & 9 deletions variants/PORTENTA_C33/pins_arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,15 +99,16 @@ static const uint8_t D7 = PIN_D7;

/****** WIRE CORE DEFINES ******/

#define WIRE_HOWMANY 4
#define WIRE_SDA_PIN 11
#define WIRE_SCL_PIN 12
#define WIRE1_SDA_PIN 37
#define WIRE1_SCL_PIN 38
#define WIRE2_SDA_PIN 39
#define WIRE2_SCL_PIN 40
#define WIRE3_SDA_PIN 96
#define WIRE3_SCL_PIN 97
#define WIRE_HOWMANY 4
#define WIRE_INTERFACES_COUNT WIRE_HOWMANY
#define WIRE_SDA_PIN 11
#define WIRE_SCL_PIN 12
#define WIRE1_SDA_PIN 37
#define WIRE1_SCL_PIN 38
#define WIRE2_SDA_PIN 39
#define WIRE2_SCL_PIN 40
#define WIRE3_SDA_PIN 96
#define WIRE3_SCL_PIN 97

/****** SPI CORE DEFINES ******/

Expand Down
11 changes: 6 additions & 5 deletions variants/UNOWIFIR4/pins_arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,12 @@ static const uint8_t D15 = PIN_D15;

/****** WIRE CORE DEFINES ******/

#define WIRE_HOWMANY 2
#define WIRE_SDA_PIN 18 /* A4 */
#define WIRE_SCL_PIN 19 /* A5 */
#define WIRE1_SDA_PIN 27
#define WIRE1_SCL_PIN 26
#define WIRE_HOWMANY 2
#define WIRE_INTERFACES_COUNT WIRE_HOWMANY
#define WIRE_SDA_PIN 18 /* A4 */
#define WIRE_SCL_PIN 19 /* A5 */
#define WIRE1_SDA_PIN 27
#define WIRE1_SCL_PIN 26

static const uint8_t SDA = WIRE_SDA_PIN;
static const uint8_t SCL = WIRE_SCL_PIN;
Expand Down
Loading