From e0b9b1ecd1687900460473344d733d06908c19d3 Mon Sep 17 00:00:00 2001 From: Branden Timm Date: Sat, 4 Jul 2020 15:15:53 -0500 Subject: [PATCH] machine: fix atmega2560 mapping for pins D2 and D5 --- src/machine/board_arduino_mega2560.go | 2 +- src/machine/machine_atmega2560.go | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/machine/board_arduino_mega2560.go b/src/machine/board_arduino_mega2560.go index 94da3b37..c6370139 100644 --- a/src/machine/board_arduino_mega2560.go +++ b/src/machine/board_arduino_mega2560.go @@ -49,7 +49,7 @@ const ( // Digital pins D0 Pin = PE0 D1 Pin = PE1 - D2 Pin = PE6 + D2 Pin = PE4 D3 Pin = PE5 D4 Pin = PG5 D5 Pin = PE3 diff --git a/src/machine/machine_atmega2560.go b/src/machine/machine_atmega2560.go index 74a83f02..fe76f1d4 100644 --- a/src/machine/machine_atmega2560.go +++ b/src/machine/machine_atmega2560.go @@ -55,7 +55,8 @@ const ( PD7 = portD + 7 PE0 = portE + 0 PE1 = portE + 1 - PE3 = portE + 2 + PE3 = portE + 3 + PE4 = portE + 4 PE5 = portE + 5 PE6 = portE + 6 PF0 = portF + 0