aboutsummaryrefslogtreecommitdiff
path: root/variants
diff options
context:
space:
mode:
authorZach Eveland <zeveland@blacklabel-development.com>2011-12-11 19:56:50 -0500
committerZach Eveland <zeveland@blacklabel-development.com>2011-12-11 19:56:50 -0500
commitc58fcf5554827113680ee16559c36ed21e0ec0e0 (patch)
tree642552d3055d47962092c6d2b7233f6c8f086ddd /variants
parenta9d1368e4c424f17d7d77efeb666f2f7734c7b93 (diff)
fixed TIMER4 use on Leonardo
ATMEGA32U4 has major differences in TIMER4 registers compared to ATMEGA1280 and 2560. turnOffPWM, analogWrite, and initialize routines had wrong registers, bit names, etc.
Diffstat (limited to 'variants')
-rw-r--r--variants/leonardo/pins_arduino.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/variants/leonardo/pins_arduino.h b/variants/leonardo/pins_arduino.h
index 15afb4e..0a0c574 100644
--- a/variants/leonardo/pins_arduino.h
+++ b/variants/leonardo/pins_arduino.h
@@ -212,7 +212,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[18] = {
+const uint8_t PROGMEM digital_pin_to_timer_PGM[16] = {
NOT_ON_TIMER,
NOT_ON_TIMER,
NOT_ON_TIMER,