From 4e90a1a78d7f69439fa2e280c604f4dca79bf843 Mon Sep 17 00:00:00 2001 From: Frederic Pillon Date: Thu, 16 Nov 2023 11:16:44 +0100 Subject: [PATCH] fix(nucleo_G431KB): add missing analog pin Signed-off-by: Frederic Pillon --- .../G431K(6-8-B)(T-U)_G441KB(T-U)/variant_NUCLEO_G431KB.cpp | 3 ++- .../G431K(6-8-B)(T-U)_G441KB(T-U)/variant_NUCLEO_G431KB.h | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/variants/STM32G4xx/G431K(6-8-B)(T-U)_G441KB(T-U)/variant_NUCLEO_G431KB.cpp b/variants/STM32G4xx/G431K(6-8-B)(T-U)_G441KB(T-U)/variant_NUCLEO_G431KB.cpp index fa6fad23c4..b65c00253d 100644 --- a/variants/STM32G4xx/G431K(6-8-B)(T-U)_G441KB(T-U)/variant_NUCLEO_G431KB.cpp +++ b/variants/STM32G4xx/G431K(6-8-B)(T-U)_G441KB(T-U)/variant_NUCLEO_G431KB.cpp @@ -49,7 +49,8 @@ const uint32_t analogInputPin[] = { 18, // A4 19, // A5 20, // A6 - 21 // A7 + 21, // A7 + 3 // A8 }; // ---------------------------------------------------------------------------- diff --git a/variants/STM32G4xx/G431K(6-8-B)(T-U)_G441KB(T-U)/variant_NUCLEO_G431KB.h b/variants/STM32G4xx/G431K(6-8-B)(T-U)_G441KB(T-U)/variant_NUCLEO_G431KB.h index 0aa0bbe752..2de47e4ba0 100644 --- a/variants/STM32G4xx/G431K(6-8-B)(T-U)_G441KB(T-U)/variant_NUCLEO_G431KB.h +++ b/variants/STM32G4xx/G431K(6-8-B)(T-U)_G441KB(T-U)/variant_NUCLEO_G431KB.h @@ -19,7 +19,7 @@ #define PA10 0 #define PA9 1 #define PA12 2 -#define PB0 3 +#define PB0 PIN_A8 #define PB7 4 #define PA15 5 #define PB6 6 @@ -78,7 +78,7 @@ // This must be a literal #define NUM_DIGITAL_PINS 25 // This must be a literal with a value less than or equal to to MAX_ANALOG_INPUTS -#define NUM_ANALOG_INPUTS 8 +#define NUM_ANALOG_INPUTS 9 // On-board LED pin number #ifndef LED_BUILTIN