14.13. nodemcu — NodeMCU

Source code: src/boards/nodemcu/board.h, src/boards/nodemcu/board.c

Hardware reference: NodeMCU


Defines

pin_d0_dev pin_device[16]
pin_d1_dev pin_device[5]
pin_d2_dev pin_device[4]
pin_d3_dev pin_device[0]
pin_d4_dev pin_device[2]
pin_d5_dev pin_device[14]
pin_d6_dev pin_device[12]
pin_d7_dev pin_device[13]
pin_d8_dev pin_device[15]
pin_d9_dev pin_device[3]
pin_d10_dev pin_device[1]
pin_led_dev pin_d4_dev
pin_a0_dev pin_device[0]
adc_0_dev adc_device[0]
flash_0_dev flash_device[0]

Functions

int board_pin_string_to_device_index(const char *str_p)

Convert given pin string to the pin number.

Return
Pin number or negative error code.
Parameters
  • str_p: Pin as a string.