LED on GPIO16
Posted: Fri Feb 13, 2015 7:14 pm
Hello, I want to drive a LED with GPIO16 of my ESP-12. Until now I only used GPIO2 on an ESP-01 with this Code
How do I have to change the #define to use GPIO16? Or better, does somebody knows a website where I can find it for every IO?
Thank you
Code: Select all
// Header:
#define LED_GPIO 2
#define LED_GPIO_MUX PERIPHS_IO_MUX_GPIO2_U
#define LED_GPIO_FUNC FUNC_GPIO2
// Code:
PIN_FUNC_SELECT(LED_GPIO_MUX, LED_GPIO_FUNC);
GPIO_OUTPUT_SET(LED_GPIO, 0);
....
GPIO_OUTPUT_SET(LED_GPIO, 1);
How do I have to change the #define to use GPIO16? Or better, does somebody knows a website where I can find it for every IO?
Thank you