possibly fix wasted power in idle mode

arduino uses TCA timer to do its things. it doesn't need to do anything
while the MCU is in low power sleep. disable TCA whenever entering sleep
from user code.

note that the prior "working" demo commented using the rgb_run_next sleep
loop in the program. was still diagnosing issues with TCB0 interrupt.
if there's still issues waking from idle with TCB interrupt, then things
will still need to be addressed...

this fix is untested.
This commit is contained in:
true
2025-04-28 20:19:36 -07:00
parent 4d58a3df74
commit cf209fce4d
2 changed files with 18 additions and 17 deletions