 for the circuit python parsec today i wanted to show you how you can use alarm in circuit python to create a deep sleep state this is really useful for when you have battery powered projects that you want to conserve energy on so if your project needs to do something after a certain interval you can have it wake up do its thing and then shut itself back down i have a esp 32 s2 tft feather and i'm just going to plug in a lipo battery and what you'll see is it's going to start up it's going to print a couple things to the screen uh good morning and then time to go to sleep and now it has shut itself into this deep sleep mode which conserves energy like crazy then after a few seconds it's going to power back up run that little bit of code and then power back down again so the way this is done in code i'm importing the alarm library uh then i'm doing whatever the things are i want it to do when it wakes up and this could be doing something like a remote relay or uh gathering some information and sending it somewhere over wi-fi you can you can get complex with this in this case it's just printing something and then we create this variable time alarm equals alarm dot time time alarm and that is the monotonic time uh is equal to time monotonic plus seven so i have seven seconds of sleep essentially so this is creating the uh the little countdown timer that's happening while it's asleep then we call this alarm exit and deep sleep until alarms and then whatever that uh value was here so now it essentially shuts down goes into deep sleep and it's just barely awake enough to count off that time and then it powers back up runs the code again so that is how you can use the alarm library in circuit python to go into deep sleep and wake back up and that is your circuit python parsec