ESP-12E Pin Numbers
Posted: Wed Jan 04, 2017 3:43 pm
This may be obvious to some, but I know others will appreciate.
For the 12E module, the pin out for i2C is the gpio number, not the module pin number.
Also, the 1 wire interface is hard coded to gpio2, (pin17) for example: temp(#). where the # is the nth device.
I've only tried temp(0), and it works well.
i2c.setup(0,2) for example, wires the sda to gpio0 or pin 18, and sdc to gpio2 or pin 17.
I tried most of the available combinations, and was successful on all but gpio16(pin4). not sure why.
Paul
For the 12E module, the pin out for i2C is the gpio number, not the module pin number.
Also, the 1 wire interface is hard coded to gpio2, (pin17) for example: temp(#). where the # is the nth device.
I've only tried temp(0), and it works well.
i2c.setup(0,2) for example, wires the sda to gpio0 or pin 18, and sdc to gpio2 or pin 17.
I tried most of the available combinations, and was successful on all but gpio16(pin4). not sure why.
Paul