Skip to content

Commit

Permalink
Merge pull request arduino#1132 from cmaglie/issue-1129
Browse files Browse the repository at this point in the history
Extended digital_pin_to_timer_PGM array for leonardo variant. Fixes arduino#1129
  • Loading branch information
cmaglie committed Nov 25, 2012
2 parents d92a86f + dfb3cab commit 94ae9a7
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion hardware/arduino/variants/leonardo/pins_arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ const uint8_t PROGMEM digital_pin_to_bit_mask_PGM[30] = {
_BV(6), // D29 / D12 - A11 - PD6
};

const uint8_t PROGMEM digital_pin_to_timer_PGM[16] = {
const uint8_t PROGMEM digital_pin_to_timer_PGM[30] = {
NOT_ON_TIMER,
NOT_ON_TIMER,
NOT_ON_TIMER,
Expand All @@ -298,6 +298,21 @@ const uint8_t PROGMEM digital_pin_to_timer_PGM[16] = {

NOT_ON_TIMER,
NOT_ON_TIMER,
NOT_ON_TIMER,
NOT_ON_TIMER,
NOT_ON_TIMER,
NOT_ON_TIMER,

NOT_ON_TIMER,
NOT_ON_TIMER,
NOT_ON_TIMER,
NOT_ON_TIMER,
NOT_ON_TIMER,
NOT_ON_TIMER,
NOT_ON_TIMER,
NOT_ON_TIMER,
NOT_ON_TIMER,
NOT_ON_TIMER,
};

const uint8_t PROGMEM analog_pin_to_channel_PGM[12] = {
Expand Down

0 comments on commit 94ae9a7

Please sign in to comment.