File tree 1 file changed +7
-4
lines changed
hardware/arduino/variants/leonardo
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 90
90
#undef OCR2_6
91
91
#undef OCR2_7
92
92
93
+ #define NUM_DIGITAL_PINS 30
94
+ #define NUM_ANALOG_INPUTS 12
95
+
93
96
#define TX_RX_LED_INIT DDRD |= (1<<5), DDRB |= (1<<0)
94
97
#define TXLED0 PORTD |= (1<<5)
95
98
#define TXLED1 PORTD &= ~(1<<5)
@@ -204,7 +207,7 @@ const uint16_t PROGMEM port_to_input_PGM[] = {
204
207
(uint16_t ) & PINF ,
205
208
};
206
209
207
- const uint8_t PROGMEM digital_pin_to_port_PGM [30 ] = {
210
+ const uint8_t PROGMEM digital_pin_to_port_PGM [] = {
208
211
PD , // D0 - PD2
209
212
PD , // D1 - PD3
210
213
PD , // D2 - PD1
@@ -241,7 +244,7 @@ const uint8_t PROGMEM digital_pin_to_port_PGM[30] = {
241
244
PD , // D29 / D12 - A11 - PD6
242
245
};
243
246
244
- const uint8_t PROGMEM digital_pin_to_bit_mask_PGM [30 ] = {
247
+ const uint8_t PROGMEM digital_pin_to_bit_mask_PGM [] = {
245
248
_BV (2 ), // D0 - PD2
246
249
_BV (3 ), // D1 - PD3
247
250
_BV (1 ), // D2 - PD1
@@ -278,7 +281,7 @@ const uint8_t PROGMEM digital_pin_to_bit_mask_PGM[30] = {
278
281
_BV (6 ), // D29 / D12 - A11 - PD6
279
282
};
280
283
281
- const uint8_t PROGMEM digital_pin_to_timer_PGM [30 ] = {
284
+ const uint8_t PROGMEM digital_pin_to_timer_PGM [] = {
282
285
NOT_ON_TIMER ,
283
286
NOT_ON_TIMER ,
284
287
NOT_ON_TIMER ,
@@ -315,7 +318,7 @@ const uint8_t PROGMEM digital_pin_to_timer_PGM[30] = {
315
318
NOT_ON_TIMER ,
316
319
};
317
320
318
- const uint8_t PROGMEM analog_pin_to_channel_PGM [12 ] = {
321
+ const uint8_t PROGMEM analog_pin_to_channel_PGM [] = {
319
322
7 , // A0 PF7 ADC7
320
323
6 , // A1 PF6 ADC6
321
324
5 , // A2 PF5 ADC5
You can’t perform that action at this time.
0 commit comments