Why Esp8266-12E has problem: swap between GPIO4 vs GPIO5 ?
Posted: Thu Aug 13, 2015 9:13 am
Hi
I have a problem about Pin Esp8266-12E
I flash Blinky led example in My Espressif DevKit
---------------
#define LED_GPIO 4
#define LED_GPIO_MUX PERIPHS_IO_MUX_GPIO4_U
#define LED_GPIO_FUNC FUNC_GPIO4
LOCAL void ICACHE_FLASH_ATTR blink_cb(void *arg)
{
GPIO_OUTPUT_SET(LED_GPIO, led_state);
led_state ^=1;
}
-----
But when Esp8266 run, I connect led to GPIO5 then Led blink working (GPIO4 define in code NOT working), I dont't understand why GPIO5
I have a problem about Pin Esp8266-12E
I flash Blinky led example in My Espressif DevKit
---------------
#define LED_GPIO 4
#define LED_GPIO_MUX PERIPHS_IO_MUX_GPIO4_U
#define LED_GPIO_FUNC FUNC_GPIO4
LOCAL void ICACHE_FLASH_ATTR blink_cb(void *arg)
{
GPIO_OUTPUT_SET(LED_GPIO, led_state);
led_state ^=1;
}
-----
But when Esp8266 run, I connect led to GPIO5 then Led blink working (GPIO4 define in code NOT working), I dont't understand why GPIO5