Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug (solved): D24 bit value is wrong in digital pin masks. #3129

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions hardware/arduino/avr/variants/leonardo/pins_arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,10 @@ extern const uint8_t PROGMEM analog_pin_to_channel_PGM[];
// MOSI D16 PB2 MOSI,PCINT2
// SS D17 PB0 RXLED,SS/PCINT0
//
// TXLED PD5
// RXLED PB0
// Connected LEDs on board for TX and RX
// TXLED D24 PD5 XCK1
// RXLED D17 PB0
//
// HWB PE2 HWB

// these arrays map port names (e.g. port B) to the
Expand Down Expand Up @@ -276,7 +278,7 @@ const uint8_t PROGMEM digital_pin_to_bit_mask_PGM[] = {
_BV(1), // D22 - A4 - PF1
_BV(0), // D23 - A5 - PF0

_BV(4), // D24 / D4 - A6 - PD4
_BV(5), // D24 - PD5
_BV(7), // D25 / D6 - A7 - PD7
_BV(4), // D26 / D8 - A8 - PB4
_BV(5), // D27 / D9 - A9 - PB5
Expand Down