If variant.h has SDA/SCL defined, use that for I2C1

This commit is contained in:
Daniel Fekete 2017-04-21 20:09:41 +02:00
parent 766898b99a
commit cad2ff1a14
1 changed files with 7 additions and 1 deletions

View File

@ -497,4 +497,10 @@ void TwoWire::onRequest( void (*function)(void) ) {
user_onRequest = function;
}
TwoWire Wire = TwoWire(I2C1);
#if defined(SDA) || defined(SCL)
TwoWire Wire = TwoWire(I2C1, SDA, SCL);
#else
TwoWire Wire = TwoWire(I2C1);
#endif