Skip to content

Commit eb2787f

Browse files
committed
MKR1000: Added DAC0 definition. See #126
1 parent aa52b48 commit eb2787f

File tree

1 file changed

+17
-14
lines changed

1 file changed

+17
-14
lines changed

variants/mkr1000/variant.h

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -68,20 +68,23 @@
6868

6969
// Analog pins
7070
// -----------
71-
#define PIN_A0 (15u)
72-
#define PIN_A1 (16u)
73-
#define PIN_A2 (17u)
74-
#define PIN_A3 (18u)
75-
#define PIN_A4 (19u)
76-
#define PIN_A5 (20u)
77-
#define PIN_A6 (21u)
78-
static const uint8_t A0 = PIN_A0;
79-
static const uint8_t A1 = PIN_A1;
80-
static const uint8_t A2 = PIN_A2;
81-
static const uint8_t A3 = PIN_A3;
82-
static const uint8_t A4 = PIN_A4;
83-
static const uint8_t A5 = PIN_A5;
84-
static const uint8_t A6 = PIN_A6;
71+
#define PIN_A0 (15u)
72+
#define PIN_A1 (16u)
73+
#define PIN_A2 (17u)
74+
#define PIN_A3 (18u)
75+
#define PIN_A4 (19u)
76+
#define PIN_A5 (20u)
77+
#define PIN_A6 (21u)
78+
#define PIN_DAC0 (15u)
79+
80+
static const uint8_t A0 = PIN_A0;
81+
static const uint8_t A1 = PIN_A1;
82+
static const uint8_t A2 = PIN_A2;
83+
static const uint8_t A3 = PIN_A3;
84+
static const uint8_t A4 = PIN_A4;
85+
static const uint8_t A5 = PIN_A5;
86+
static const uint8_t A6 = PIN_A6;
87+
static const uint8_t DAC0 = PIN_DAC0;
8588
#define ADC_RESOLUTION 12
8689

8790
// SPI Interfaces

0 commit comments

Comments
 (0)