I have seen that before to enter to sleep mode I used the instruction:
Code: Select all
rtc_gpio_hold_en(GPIO_NUM_4);
After restart, the chip must execute the instruction:
Code: Select all
rtc_gpio_hold_dis(GPIO_NUM_4);
Code: Select all
rtc_gpio_hold_en(GPIO_NUM_4);
Code: Select all
rtc_gpio_hold_dis(GPIO_NUM_4);
Code: Select all
#define ledFlash 4
Code: Select all
ledcSetup(LEDC_CHANNEL_7, 12000, 9);
ledcAttachPin(ledFlash, LEDC_CHANNEL_7);
ledcWrite(LEDC_CHANNEL_7, 0);
Code: Select all
ledcWrite(LEDC_CHANNEL_7, 50);