Skip to content

Commit 95ae967

Browse files
committed
Fix pin names
1 parent 9fee036 commit 95ae967

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

variants/UNISENSE/pins_arduino.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,8 @@ static const uint8_t SCK = PIN_SPI_SCK;
135135

136136
// Mbed specific defines
137137
#define SERIAL_HOWMANY 1
138-
#define SERIAL1_TX (digitalPinToPinName(PIN_SERIAL_TX))
139-
#define SERIAL1_RX (digitalPinToPinName(PIN_SERIAL_RX))
138+
#define SERIAL1_TX (TX_PIN_NUMBER)
139+
#define SERIAL1_RX (RX_PIN_NUMBER)
140140

141141
//#define SERIAL_CDC 1
142142
#define HAS_UNIQUE_ISERIAL_DESCRIPTOR
@@ -148,10 +148,10 @@ static const uint8_t SCK = PIN_SPI_SCK;
148148

149149
#define WIRE_HOWMANY 2
150150

151-
#define I2C_SDA (digitalPinToPinName(PIN_WIRE_SDA))
152-
#define I2C_SCL (digitalPinToPinName(PIN_WIRE_SCL))
153-
#define I2C_SDA1 (digitalPinToPinName(PIN_WIRE_SDA1))
154-
#define I2C_SCL1 (digitalPinToPinName(PIN_WIRE_SCL1))
151+
#define I2C_SDA (I2C_SDA0)
152+
#define I2C_SCL (I2C_SCL0)
153+
#define I2C_SDA1 (I2C_SDA1)
154+
#define I2C_SCL1 (I2C_SCL1)
155155

156156
#define SPI_HOWMANY 1
157157

0 commit comments

Comments
 (0)