#include #define LEDGPIO 0 static ETSTimer ledTimer; void ICACHE_FLASH_ATTR setLed(int on) { if (on) { gpio_output_set((1< STATION_CONNECTING) { // some failure, rapid blinking ledState = 1-ledState; time = 100; } else { // idle switch (m) { case 1: // STA ledState = 0; break; case 2: // AP ledState = 1-ledState; time = ledState ? 100 : 1900; break; case 3: // STA+AP ledState = 1-ledState; time = ledState ? 100 : 900; break; } } setLed(1-ledState); // low=on os_timer_arm(&ledTimer, time, 0); } void statusInit() { PIN_FUNC_SELECT(PERIPHS_IO_MUX_GPIO0_U, FUNC_GPIO0); gpio_output_set(0, 0, (1<