Report Bugs Here

Moderator: Mmiscool

User avatar
By PeterN
#64908 I made a WordClock with 100 neopixels. Wanted to sent the clock to sleep for the late night hours. Regardless of my value for the seconds ( e.g. sleep 21600 ), sleep seems to do the job only for about 1 hour and then wakes up the machine.

Can not find information about a potential restriction for the internal countdown-timer
User avatar
By martinayotte
#64977 This limit is well known !
To get longer deepSleep(), you need to have a counter in RTCRAM, and when wake up from deepSleep, decrement the counter, and go back quickly in deepSleep if that counter hasn't reach zero.
User avatar
By PeterN
#64998 Thanks for the hint, to use SLEEP in a loop with a counter in external memory.

It would help if the exact maximum number of seconds to be used with SLEEP could be mentioned in the dokumentation. This for all other peope to find this well known limitation faster than I did.