mattdibi / redox-w-firmware

Firmware for nordic MCUs used in the Redox wireless keyboard
MIT License
77 stars 42 forks source link

Power off instead of disabling the rtc #19

Closed relokin closed 3 years ago

relokin commented 3 years ago

Previously, after 0.5sec of inactivity we would disable the rtc and go into a low power mode the next time we received a keypress which would turn on the rtc and resume normal operation. This change simplifies the code and instead switches system off. A key press will power it on again and resume operation.

Signed-off-by: Nikos Nikoleris nikos.nikoleris@gmail.com

relokin commented 3 years ago

I don't have access to an oscilloscope right now but according to Nordic this should reduce the idle power a little. If you have the time to measure it that'd great otherwise I will let you know once I have measurements.