Skip to content

Commit 4e90a1a

Browse files
committed
fix(nucleo_G431KB): add missing analog pin
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent e283b8c commit 4e90a1a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

variants/STM32G4xx/G431K(6-8-B)(T-U)_G441KB(T-U)/variant_NUCLEO_G431KB.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ const uint32_t analogInputPin[] = {
4949
18, // A4
5050
19, // A5
5151
20, // A6
52-
21 // A7
52+
21, // A7
53+
3 // A8
5354
};
5455

5556
// ----------------------------------------------------------------------------

variants/STM32G4xx/G431K(6-8-B)(T-U)_G441KB(T-U)/variant_NUCLEO_G431KB.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#define PA10 0
2020
#define PA9 1
2121
#define PA12 2
22-
#define PB0 3
22+
#define PB0 PIN_A8
2323
#define PB7 4
2424
#define PA15 5
2525
#define PB6 6
@@ -78,7 +78,7 @@
7878
// This must be a literal
7979
#define NUM_DIGITAL_PINS 25
8080
// This must be a literal with a value less than or equal to to MAX_ANALOG_INPUTS
81-
#define NUM_ANALOG_INPUTS 8
81+
#define NUM_ANALOG_INPUTS 9
8282

8383
// On-board LED pin number
8484
#ifndef LED_BUILTIN

0 commit comments

Comments
 (0)