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!
// 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?
In the section about the ADC
I assume it should be
ADC0.CTRLA |= ADC_ENABLE_bm
?