Deep Sleep : PWM stays on during deep sleep. Bug?

BigJinge
Posts: 2
Joined: Thu Mar 28, 2019 4:17 pm

Deep Sleep : PWM stays on during deep sleep. Bug?

Postby BigJinge » Mon Nov 18, 2019 4:34 pm

Hi,

I've got a D32 Pro and have connected four LEDs to pins 0, 2, 14 and 15 as PWM pins.

I noticed after that when I plugged the microUSB into the D32 Pro, the green LED only on pin 0 would flash then go off.

I can then run the Arduino code for fading all of them, all good.

I then implemented deep sleep using EXT1 and as soon as it goes to sleep, the green LED stays on with a PWM brightness of what appears to be 50% (the same flash brightness when USB plugged in).

So....

It appears when the microUSB is plugged in, it passes through the deep sleep stub quickly and wakes up fully, hence the green LED flash.

How can I set pin 0 (RTC_GPIO11) when it goes into deep sleep NOT to turn on PWM 50%?

I can see Arduino deep sleep commands on what to do before it falls asleep but can't find ones to directly programme the RTC layer.

Any thoughts?

TIA

BigJinge

Who is online

Users browsing this forum: No registered users and 71 guests