defining gpio in nodemcu using Espressif sdk

Thread Starter

yef smith

Joined Aug 2, 2020
235
Hello,I want to turn on and off gpio4 on node mcu shown bellow.
from page 9 we have pin_func_select function ,but i cant understand the MTDI thing and how to enable the gpio4 pin from the functions bellow.
There is also GPIO_OUTPUT_SET, i understand the "select" enable the gpio and the SET sets the value.
But I cant figure out the languege of turning on gpio4.
Thanks.

https://www.espressif.com/sites/default/files/documentation/esp8266-technical_reference_en.pdf

1608052584473.png
1608052874562.png

1608052528453.png
 
Top