SpenceKonde / megaTinyCore

Arduino core for the tinyAVR 0/1/2-series - Ones's digit 2,4,5,7 (pincount, 8,14,20,24), tens digit 0, 1, or 2 (featureset), preceded by flash in kb. Library maintainers: porting help available!
Other
542 stars 140 forks source link

Typo in PowerSave.md? #1037

Closed JasXSL closed 7 months ago

JasXSL commented 7 months ago

In the section about the ADC

// Before sleeping
  ADC0.CTRLA &= ~ADC_ENABLE_bm; //Very important on the tinyAVR 2-series
// upon waking if ou plan to use the ADC
  ADC0.CTRLA |= ~ADC_ENABLE_bm;

I assume it should be ADC0.CTRLA |= ADC_ENABLE_bm?

SpenceKonde commented 7 months ago

Thanks