Alarms based on current time? M5Core2
-
Hello. I am working with the m5core2 and was really hoping there is a way to run alerts or functions based on the given time? I know the unit has an rtc im just not sure how to use it. Any recommendations or advice would be greatly apricated.
-
@babygirl1248 try look at this guide: https://randomnerdtutorials.com/esp32-timer-wake-up-deep-sleep/
-
@babygirl1248 said in Alarms based on current time? M5Core2:
Hello. I am working with the m5core2 and was really hoping there is a way to run alerts or functions based on the given time? I know the unit has an rtc im just not sure how to use it. Any recommendations or advice would be greatly apricated.
Thank you for that article, it did clue me into the rtc, however i need a way to run a function at like 7:30 and another at 15:00 and ive been playing with libraries all day with no luck
-
@babygirl1248 i know you can write special code for the rtc, but have never try.
Each time the esp32 is running, you can update the clock and after doing its job, calculate the time it should sleep to wake up at your selectede time and then make it sleep for that amount of sec.