10/30/2023 0 Comments Esp8266 nodemcu eclipse development![]() ![]() Interrupts may be attached to any GPIO pin, except GPIO16. Pin interrupts are supported through attachInterrupt, functions. ![]() The diagram above shows the pin mapping for the popular ESP8266 NodeMcu module. These functions are normally activated by the corresponding library. Pins may also serve other functions, like Serial, I2C, SPI. It can be addressed with digitalRead(D0), digitalRead(16) or digitalRead(LED_BUILDIN). Pin 16 can be INPUT, OUTPUT or INPUT_PULLDOWN_16 and is connected to the build-in LED. Digital pins 0-15 can be INPUT, OUTPUT, or INPUT_PULLUP. ![]() pinMode, digitalRead, and digitalWrite functions work as usual, so to read GPIO2, call digitalRead(2) or its alias name digitalRead(D10).Īt startup, pins are configured as INPUT. Pin numbers in the Arduino IDE correspond directly to the ESP8266 GPIO pin numbers. In the ESP8266 firmware for the Arduino IDE pin numbers are defined as follows: Pin Name on the Board
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |