Skip to content

Commit c8cc579

Browse files
committed
Use VDD (5V) as default analog reference
Replicates the behaviour on a UNO
1 parent 928fcbc commit c8cc579

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cores/arduino/wiring.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,7 @@ void init()
347347

348348
/* Enable ADC */
349349
ADC0.CTRLA |= ADC_ENABLE_bm;
350+
analogReference(VDD);
350351

351352
#endif
352353

0 commit comments

Comments
 (0)