File tree 4 files changed +12
-2
lines changed
4 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -188,4 +188,7 @@ arduino::MbedI2C Wire(I2C_SDA, I2C_SCL);
188
188
#endif
189
189
#if WIRE_HOWMANY > 1
190
190
arduino::MbedI2C Wire1 (I2C_SDA1, I2C_SCL1);
191
+ #endif
192
+ #if WIRE_HOWMANY > 2
193
+ arduino::MbedI2C Wire2 (I2C_SDA2, I2C_SCL2);
191
194
#endif
Original file line number Diff line number Diff line change @@ -95,5 +95,8 @@ extern arduino::MbedI2C Wire;
95
95
#if WIRE_HOWMANY > 1
96
96
extern arduino::MbedI2C Wire1;
97
97
#endif
98
+ #if WIRE_HOWMANY > 2
99
+ extern arduino::MbedI2C Wire2;
100
+ #endif
98
101
99
102
typedef arduino::MbedI2C TwoWire;
Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ static const uint8_t SCK = PIN_SPI_SCK;
115
115
uint8_t getUniqueSerialNumber (uint8_t * name );
116
116
void _ontouch1200bps_ ();
117
117
118
- #define WIRE_HOWMANY 2
118
+ #define WIRE_HOWMANY 3
119
119
120
120
#define I2C_SDA (digitalPinToPinName(PIN_WIRE_SDA))
121
121
#define I2C_SCL (digitalPinToPinName(PIN_WIRE_SCL))
@@ -124,6 +124,8 @@ void _ontouch1200bps_();
124
124
#define I2C_SCL_INTERNAL (PB_6)
125
125
#define I2C_SDA1 I2C_SDA_INTERNAL
126
126
#define I2C_SCL1 I2C_SCL_INTERNAL
127
+ #define I2C_SDA2 (PH_12)
128
+ #define I2C_SCL2 (PH_11)
127
129
128
130
#define SPI_HOWMANY 1
129
131
Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ static const uint8_t SCK = PIN_SPI_SCK;
122
122
uint8_t getUniqueSerialNumber (uint8_t * name );
123
123
void _ontouch1200bps_ ();
124
124
125
- #define WIRE_HOWMANY 2
125
+ #define WIRE_HOWMANY 3
126
126
127
127
#define I2C_SDA (digitalPinToPinName(PIN_WIRE_SDA))
128
128
#define I2C_SCL (digitalPinToPinName(PIN_WIRE_SCL))
@@ -131,6 +131,8 @@ void _ontouch1200bps_();
131
131
#define I2C_SCL_INTERNAL (PB_6)
132
132
#define I2C_SDA1 I2C_SDA_INTERNAL
133
133
#define I2C_SCL1 I2C_SCL_INTERNAL
134
+ #define I2C_SDA2 (PH_12)
135
+ #define I2C_SCL2 (PH_11)
134
136
135
137
#define SPI_HOWMANY 1
136
138
You can’t perform that action at this time.
0 commit comments