Skip to content

Commit d4981d8

Browse files
Bekken, Kristian_saxrudWalberg, Irun
authored andcommitted
Update to digital_pin_to_bit_position[] from review of pins_arduino.h
1 parent 49f6bef commit d4981d8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

variants/uno2018/pins_arduino.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ const uint8_t PROGMEM digital_pin_to_port[] = {
234234

235235
/* Use this for accessing PINnCTRL register */
236236
const uint8_t PROGMEM digital_pin_to_bit_position[] = {
237-
PIN5_bp, //0 USART1_Tx PC5
237+
PIN5_bp, //0 USART1_Rx PC5
238238
PIN4_bp, //1 USART1_Tx PC4
239239
PIN0_bp, //2 PA0
240240
PIN5_bp, //3 PF5
@@ -257,8 +257,8 @@ const uint8_t PROGMEM digital_pin_to_bit_position[] = {
257257
PIN2_bp, //20 TWI_SDA PA2
258258
PIN3_bp, //21 TWI_SCL PA3
259259
PIN3_bp, //22 SPI SS PC3
260-
PIN4_bp, //23 USART0_Rx PA5
261-
PIN5_bp, //24 USART0_Tx PA4
260+
PIN5_bp, //23 USART0_Rx PA5
261+
PIN4_bp, //24 USART0_Tx PA4
262262
PIN6_bp, //25 LED_BUILTIN PD6
263263
PIN5_bp, //26 USART3_Rx PB5
264264
PIN4_bp, //27 USART3_Tx PB4

0 commit comments

Comments
 (0)