Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wake up esp32 each 2 or 3 hours #13

Open
GeralDennis opened this issue Jan 19, 2022 · 1 comment
Open

Wake up esp32 each 2 or 3 hours #13

GeralDennis opened this issue Jan 19, 2022 · 1 comment

Comments

@GeralDennis
Copy link

Hi, the alarm allows esp32 wake up each 2 or 3 hours?
I was trying to wake up esp32 every two hours using this line "ds.ALARM(ds.Day(), (ds.Hour() + 2)%24, 46, DS3231.PER_HOUR)" but the esp32 keeps waking up every hour.
Can you help how to do it?
Thank you in advance.

@shaoziyang
Copy link
Collaborator

In fact, ds3231 has hourly alarm mode, but it does not support alarm every few hours. So you may set it alarm next two hour before esp32 sleep, just like ds.ALARM(ds.Day(), (ds.Hour() + 2)%24, 46, DS3231.PER_DAY).

图片

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants