File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
hardware/arduino/variants/leonardo Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 9090#undef OCR2_6
9191#undef OCR2_7
9292
93+ #define NUM_DIGITAL_PINS 30
94+ #define NUM_ANALOG_INPUTS 12
95+
9396#define TX_RX_LED_INIT DDRD |= (1<<5), DDRB |= (1<<0)
9497#define TXLED0 PORTD |= (1<<5)
9598#define TXLED1 PORTD &= ~(1<<5)
@@ -204,7 +207,7 @@ const uint16_t PROGMEM port_to_input_PGM[] = {
204207 (uint16_t ) & PINF ,
205208};
206209
207- const uint8_t PROGMEM digital_pin_to_port_PGM [30 ] = {
210+ const uint8_t PROGMEM digital_pin_to_port_PGM [] = {
208211 PD , // D0 - PD2
209212 PD , // D1 - PD3
210213 PD , // D2 - PD1
@@ -241,7 +244,7 @@ const uint8_t PROGMEM digital_pin_to_port_PGM[30] = {
241244 PD , // D29 / D12 - A11 - PD6
242245};
243246
244- const uint8_t PROGMEM digital_pin_to_bit_mask_PGM [30 ] = {
247+ const uint8_t PROGMEM digital_pin_to_bit_mask_PGM [] = {
245248 _BV (2 ), // D0 - PD2
246249 _BV (3 ), // D1 - PD3
247250 _BV (1 ), // D2 - PD1
@@ -278,7 +281,7 @@ const uint8_t PROGMEM digital_pin_to_bit_mask_PGM[30] = {
278281 _BV (6 ), // D29 / D12 - A11 - PD6
279282};
280283
281- const uint8_t PROGMEM digital_pin_to_timer_PGM [30 ] = {
284+ const uint8_t PROGMEM digital_pin_to_timer_PGM [] = {
282285 NOT_ON_TIMER ,
283286 NOT_ON_TIMER ,
284287 NOT_ON_TIMER ,
@@ -315,7 +318,7 @@ const uint8_t PROGMEM digital_pin_to_timer_PGM[30] = {
315318 NOT_ON_TIMER ,
316319};
317320
318- const uint8_t PROGMEM analog_pin_to_channel_PGM [12 ] = {
321+ const uint8_t PROGMEM analog_pin_to_channel_PGM [] = {
319322 7 , // A0 PF7 ADC7
320323 6 , // A1 PF6 ADC6
321324 5 , // A2 PF5 ADC5
You can’t perform that action at this time.
0 commit comments