From 6a3571959405ed93045b579818aa5c44bc9f72b2 Mon Sep 17 00:00:00 2001 From: Ayke van Laethem Date: Tue, 28 Jun 2022 15:20:06 +0200 Subject: [PATCH] avr: fix some apparent mistake in atmega1280/atmega2560 pin constants --- src/machine/machine_atmega1280.go | 8 ++++---- src/machine/machine_atmega2560.go | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/machine/machine_atmega1280.go b/src/machine/machine_atmega1280.go index 6c286f18..7278173a 100644 --- a/src/machine/machine_atmega1280.go +++ b/src/machine/machine_atmega1280.go @@ -85,10 +85,10 @@ const ( PK1 = portK + 1 PK2 = portK + 2 PK3 = portK + 3 - PK4 = portH + 4 - PK5 = portH + 5 - PK6 = portH + 6 - PK7 = portH + 7 + PK4 = portK + 4 + PK5 = portK + 5 + PK6 = portK + 6 + PK7 = portK + 7 PL0 = portL + 0 PL1 = portL + 1 PL2 = portL + 2 diff --git a/src/machine/machine_atmega2560.go b/src/machine/machine_atmega2560.go index 7a523ae1..c3a1ca1a 100644 --- a/src/machine/machine_atmega2560.go +++ b/src/machine/machine_atmega2560.go @@ -87,10 +87,10 @@ const ( PK1 = portK + 1 PK2 = portK + 2 PK3 = portK + 3 - PK4 = portH + 4 - PK5 = portH + 5 - PK6 = portH + 6 - PK7 = portH + 7 + PK4 = portK + 4 + PK5 = portK + 5 + PK6 = portK + 6 + PK7 = portK + 7 PL0 = portL + 0 PL1 = portL + 1 PL2 = portL + 2