From 8ded2caaec2f3e2767fc83f9e84e9fa184b207d7 Mon Sep 17 00:00:00 2001 From: "Spence Konde (aka Dr. Azzy)" Date: Sun, 7 Jul 2019 23:48:57 -0400 Subject: [PATCH] Use PA7 for LED_BUILTIN It doesn't have any interesting special functions, and all the chips have it. Why not use the same port pin everywhere? --- megaavr/variants/txy4/pins_arduino.h | 2 +- megaavr/variants/txy6/pins_arduino.h | 2 +- megaavr/variants/txy7/pins_arduino.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/megaavr/variants/txy4/pins_arduino.h b/megaavr/variants/txy4/pins_arduino.h index a2f39c4f..e757d627 100644 --- a/megaavr/variants/txy4/pins_arduino.h +++ b/megaavr/variants/txy4/pins_arduino.h @@ -71,7 +71,7 @@ static const uint8_t SCL = PIN_WIRE_SCL; #define PIN_WIRE_HWSERIAL0_RX (4) #define PIN_WIRE_HWSERIAL0_TX (5) -#define LED_BUILTIN 4 //FIXME +#define LED_BUILTIN 3 //FIXME #define PIN_A0 (11) diff --git a/megaavr/variants/txy6/pins_arduino.h b/megaavr/variants/txy6/pins_arduino.h index 330c72f8..b6e42fc0 100644 --- a/megaavr/variants/txy6/pins_arduino.h +++ b/megaavr/variants/txy6/pins_arduino.h @@ -72,7 +72,7 @@ static const uint8_t SCL = PIN_WIRE_SCL; #define PIN_WIRE_HWSERIAL0_RX (6) #define PIN_WIRE_HWSERIAL0_TX (7) -#define LED_BUILTIN 4 +#define LED_BUILTIN 3 #define PIN_A0 (17) #define PIN_A1 (14) diff --git a/megaavr/variants/txy7/pins_arduino.h b/megaavr/variants/txy7/pins_arduino.h index e0ca2ad0..c0979188 100644 --- a/megaavr/variants/txy7/pins_arduino.h +++ b/megaavr/variants/txy7/pins_arduino.h @@ -71,7 +71,7 @@ static const uint8_t SCL = PIN_WIRE_SCL; #define PIN_WIRE_HWSERIAL0_RX (8) #define PIN_WIRE_HWSERIAL0_TX (9) -#define LED_BUILTIN 4 +#define LED_BUILTIN 3 #define PINS_COUNT (22u)