SpenceKonde / ATTinyCore

Arduino core for ATtiny 1634, 828, x313, x4, x41, x5, x61, x7 and x8
Other
1.53k stars 301 forks source link

x5 ADC_INTERNAL1V1 and ADC_GROUND were flipped #852

Open hmeijdam opened 2 months ago

hmeijdam commented 2 months ago

As per this discussion I observed that the ADMUX defines are swapped for GND and INTERNAL1V1 on the x5 parts

dereified commented 2 months ago

The part's arrived now, and I can confirm that on an ATTiny85 to read Vbg you need 0x8C not 0x8D as the argument to analogRead()