Adjust wiring_analog.c for Attiny841/441 #6643
Labels
Component: Core
Related to the code for the standard Arduino API
feature request
A request to make an enhancement (not a bug fix)
Attiny841/44 with 12+5 ADCs use ADMUXA and ADMUXB instead of ADMUX to select analog reference and channel. Just look at hardware/tools/avr/avr/include/avr/iotn841.h and hardware/tools/avr/avr/include/avr/iotn441.h.
The patch attached properly initializes ADMUXA and ADMUXB to make ADC usable, tested with Attiny841, thanks @awatterott for the hint.
wiring_analog_attiny841.txt
The text was updated successfully, but these errors were encountered: