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

How is the sleep time defined and where is the wake up call #5

Open
wlwatkins opened this issue Jun 5, 2022 · 1 comment
Open

How is the sleep time defined and where is the wake up call #5

wlwatkins opened this issue Jun 5, 2022 · 1 comment

Comments

@wlwatkins
Copy link

Hi,

I'm quite new at using interrupts with arduino hence i am having difficulties understanding your code.
Could you enlighten me on when in the powerdown functions the sleeping time is defined? I understand it's related to LORA_TX_INTERVAL and that the number of sleep cycles is compared. But I don't understand why there a division by 8 and where the arduino is waken up

thanks

@JackGruber
Copy link
Owner

The WDTCSR register is set to 8 seconds, therefore the micro controller wake up every 8 seconds to check if the sleep time from LORA_TX_INTERVAL has reached.

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