If variant.h has SDA/SCL defined, use that for I2C1
This commit is contained in:
parent
766898b99a
commit
cad2ff1a14
|
@ -497,4 +497,10 @@ void TwoWire::onRequest( void (*function)(void) ) {
|
||||||
user_onRequest = function;
|
user_onRequest = function;
|
||||||
}
|
}
|
||||||
|
|
||||||
TwoWire Wire = TwoWire(I2C1);
|
|
||||||
|
#if defined(SDA) || defined(SCL)
|
||||||
|
TwoWire Wire = TwoWire(I2C1, SDA, SCL);
|
||||||
|
#else
|
||||||
|
TwoWire Wire = TwoWire(I2C1);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue