datomusic / duo-imxrt

MIT License
3 stars 0 forks source link

Lower power sleep #139

Closed DavidMenting closed 1 year ago

DavidMenting commented 1 year ago

This branch sleeps at under 100mA.

  1. turns off audio and headphone amp
  2. turns off clock to DAC
  3. slows down powerbutton scanning

More could be done by clocking down the processor or switching to one of the real low power states but < 100mA seems good for now.

DavidMenting commented 1 year ago

@ggVGc could you have a look at whether the initialisation of the dacs can be improved so that it is also compatible with FlexIO? I've now made dac1 global in main.