Skip to content

Commit

Permalink
Fix analogReference issue
Browse files Browse the repository at this point in the history
  • Loading branch information
MCUdude authored Apr 5, 2017
1 parent 68ce3ad commit 30723e0
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions avr/cores/MegaCore/Arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,16 +63,17 @@ void yield(void);

// Analog reference definitions
#if defined(__AVR_ATmega64__) || defined(__AVR_ATmega128__)
#define EXTERNAL 1
#define INTERNAL 2
#define EXTERNAL 0
#define DEFAULT 1 // Default -> AVCC with external capacitor at AREF pin
#define INTERNAL 3
#define INTERNAL2V56 3
#elif defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__) || defined(__AVR_ATmega1281__) || defined(__AVR_ATmega2561__)
#define EXTERNAL 0
#define DEFAULT 1 // Default -> AVCC with external capacitor at AREF pin
#define INTERNAL1V1 2
#define INTERNAL2V56 3
#endif

// Default -> AVCC with external capacitor at AREF pin
#define DEFAULT 1


// undefine stdlib's abs if encountered
#ifdef abs
#undef abs
Expand Down

0 comments on commit 30723e0

Please sign in to comment.