module documentation
Stick firmware power saving helper
Function | boost |
Change clock boosting state |
Function | boost |
Boosts clock depending on battery and allow_boosts state |
Function | loop |
Slow down MCU clock to save power, make sure to call it every 1-2s so it is not always highest one possible |
Function | set |
Set MCU frequency in Hz |
Variable | allow |
Undocumented |
Variable | cooldown |
Undocumented |
Variable | last |
Undocumented |
Change clock boosting state Args: allow (bool): True if you want to allow clock boosting, False if no Returns: bool: Current state of allow_boosts
Slow down MCU clock to save power, make sure to call it every 1-2s so it is not always highest one possible