question about variants/32pin-standard/pins_arduino.h #339
Answered
by
SpenceKonde
ObviousInRetrospect
asked this question in
Q&A
-
Is there a bug in the digital_pin_to_timer[] in the 32pin-standard pins_arduino.h? Specifically the line between PD0 and PD1 seems like it would shift everything below it to be off by one. I don't see a similar line in any of the other files. NOT_ON_TIMER, // 12 PD0/AIN0
NOT_ON_TIMER,
NOT_ON_TIMER, // 13 PD1/AIN1 const uint8_t digital_pin_to_timer[] = {
NOT_ON_TIMER, // 0 PA0/XTAL1/CLKIN
NOT_ON_TIMER, // 1 PA1/XTAL2
TIMERB0, // 2 PA2/SDA
TIMERB1, // 3 PA3/SCL
TIMERD0, // 4 PA4/MOSI WOA
TIMERD0, // 5 PA5/MISO WOB
TIMERD0, // 6 PA6/SCK WOC mirrors WOA
TIMERD0, // 7 PA7/SS/CLKOUT WOD mirrors WOB
TIMERB2, // 8 PC0
NOT_ON_TIMER, // 9 PC1
NOT_ON_TIMER, // 10 PC2
NOT_ON_TIMER, // 11 PC3
NOT_ON_TIMER, // 12 PD0/AIN0
NOT_ON_TIMER,
NOT_ON_TIMER, // 13 PD1/AIN1
NOT_ON_TIMER, // 14 PD2/AIN2
NOT_ON_TIMER, // 15 PD3/AIN3
NOT_ON_TIMER, // 16 PD4/AIN4
NOT_ON_TIMER, // 17 PD5/AIN5
DACOUT, // 18 PD6/AIN6/DAC
NOT_ON_TIMER, // 19 PD7/AIN7/AREF
NOT_ON_TIMER, // 20 PF0/AIN16TOSC1
NOT_ON_TIMER, // 21 PF1/AIN17TOSC2
NOT_ON_TIMER, // 22 PF2/AIN18
NOT_ON_TIMER, // 23 PF3/AIN19
NOT_ON_TIMER, // 24 PF4/AIN20
NOT_ON_TIMER, // 25 PF5/AIN21
NOT_ON_TIMER, // 26 PF6 RESET
//NOT_ON_TIMER// 27 PF7 UPDI
}; |
Beta Was this translation helpful? Give feedback.
Answered by
SpenceKonde
Sep 5, 2022
Replies: 1 comment 1 reply
-
Yeah that looks like a bug |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ObviousInRetrospect
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yeah that looks like a bug