The use of the ESP8266 in the world of IoT

User avatar
By tinkerbear
#44756
totalconfusion wrote:
Code: Select all#define PIN 4 // GPIO pin  <-- Pin 4 is actually the broken out pin marked GPIO2


edit: changed diagram and pin number in code.


Ok, I'm fiddling with this right now... and GPIO2 appears to be pin 2 in Arduino, not 4. Where did 4 come from?