-->
Page 1 of 1

NodeMCU on Arduino IDE - I2C

PostPosted: Wed Aug 30, 2017 11:30 am
by Oliveira
Hello, i just started a new project where i need to use i2c, but i don't know how to define the pins to use SCL and SCA. I'm using Arduino IDE to upload to the NodeMCU.

Re: NodeMCU on Arduino IDE - I2C

PostPosted: Thu Aug 31, 2017 10:12 am
by martinayotte
The Wire library is providing this thru the constructor :
Code: Select allWire.begin(int sda, int scl);

Re: NodeMCU on Arduino IDE - I2C

PostPosted: Thu Aug 31, 2017 12:11 pm
by Oliveira
Thanks! It worked!