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.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login