Proper GPIO initialization and pin definition
Posted: Tue Nov 04, 2014 10:05 pm
Hi Community.
I am having a bit of trouble identifying the proper way to initialize and define GPIO pins on the ESP8266.
Looking at http://g-lab.ca/esp8266ex-gpio-applicat ... interface/
which takes an excerpt from the documentation, I am at total loss. should we use BIT2 for GPIO2? or just the number 2 when for instance
reading GPIO_INPUT_GET().
can someone shed some light on how to properly init those pins.
an example of INPUT and OUTPUT pins (say GPIO2 or GPIO1) would be great.
Thanks
FK
I am having a bit of trouble identifying the proper way to initialize and define GPIO pins on the ESP8266.
Looking at http://g-lab.ca/esp8266ex-gpio-applicat ... interface/
which takes an excerpt from the documentation, I am at total loss. should we use BIT2 for GPIO2? or just the number 2 when for instance
reading GPIO_INPUT_GET().
can someone shed some light on how to properly init those pins.
an example of INPUT and OUTPUT pins (say GPIO2 or GPIO1) would be great.
Thanks
FK