Skip to content

Commit 6aa6dc1

Browse files
committed
Added definitions for DAC0 in variants
Fix #126
1 parent dd6890a commit 6aa6dc1

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

variants/arduino_zero/variant.h

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,15 @@ extern "C"
9696
#define PIN_A3 (17ul)
9797
#define PIN_A4 (18ul)
9898
#define PIN_A5 (19ul)
99-
100-
static const uint8_t A0 = PIN_A0 ;
101-
static const uint8_t A1 = PIN_A1 ;
102-
static const uint8_t A2 = PIN_A2 ;
103-
static const uint8_t A3 = PIN_A3 ;
104-
static const uint8_t A4 = PIN_A4 ;
105-
static const uint8_t A5 = PIN_A5 ;
99+
#define PIN_DAC0 (14ul)
100+
101+
static const uint8_t A0 = PIN_A0;
102+
static const uint8_t A1 = PIN_A1;
103+
static const uint8_t A2 = PIN_A2;
104+
static const uint8_t A3 = PIN_A3;
105+
static const uint8_t A4 = PIN_A4;
106+
static const uint8_t A5 = PIN_A5;
107+
static const uint8_t DAC0 = PIN_DAC0;
106108
#define ADC_RESOLUTION 12
107109

108110
// Other pins

0 commit comments

Comments
 (0)