Skip to content

Commit 94ae9a7

Browse files
committed
Merge pull request arduino#1132 from cmaglie/issue-1129
Extended digital_pin_to_timer_PGM array for leonardo variant. Fixes arduino#1129
2 parents d92a86f + dfb3cab commit 94ae9a7

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

hardware/arduino/variants/leonardo/pins_arduino.h

+16-1
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ const uint8_t PROGMEM digital_pin_to_bit_mask_PGM[30] = {
278278
_BV(6), // D29 / D12 - A11 - PD6
279279
};
280280

281-
const uint8_t PROGMEM digital_pin_to_timer_PGM[16] = {
281+
const uint8_t PROGMEM digital_pin_to_timer_PGM[30] = {
282282
NOT_ON_TIMER,
283283
NOT_ON_TIMER,
284284
NOT_ON_TIMER,
@@ -298,6 +298,21 @@ const uint8_t PROGMEM digital_pin_to_timer_PGM[16] = {
298298

299299
NOT_ON_TIMER,
300300
NOT_ON_TIMER,
301+
NOT_ON_TIMER,
302+
NOT_ON_TIMER,
303+
NOT_ON_TIMER,
304+
NOT_ON_TIMER,
305+
306+
NOT_ON_TIMER,
307+
NOT_ON_TIMER,
308+
NOT_ON_TIMER,
309+
NOT_ON_TIMER,
310+
NOT_ON_TIMER,
311+
NOT_ON_TIMER,
312+
NOT_ON_TIMER,
313+
NOT_ON_TIMER,
314+
NOT_ON_TIMER,
315+
NOT_ON_TIMER,
301316
};
302317

303318
const uint8_t PROGMEM analog_pin_to_channel_PGM[12] = {

0 commit comments

Comments
 (0)