Skip to content

Commit d9870f9

Browse files
committed
[Nucleo L432KC] Fix pin mapping
D7/D8 was inverted, moreover add a comment to specify they are not connected by default. SB6 and SB8 need to be closed to connect them to the CN3 connector. Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>
1 parent af14495 commit d9870f9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

variants/NUCLEO_L432KC/variant.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ const PinName digitalPin[] = {
3131
PB_7, //D4
3232
PB_6, //D5
3333
PB_1, //D6
34-
PC_14, //D7
35-
PC_15, //D8
34+
PC15, //D7 - By default, SB8 open PF1/PC15 not connected to D7
35+
PC14, //D8 - By default, SB6 open PF0/PC14 not connected to D8
3636
PA_8, //D9
3737
PA_11, //D10
3838
PB_5, //D11

variants/NUCLEO_L432KC/variant.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ extern const PinName digitalPin[];
4040
#define PB7 4
4141
#define PB6 5
4242
#define PB1 6
43-
#define PC14 7
44-
#define PC15 8
43+
#define PC15 7 // By default, SB8 open PF1/PC15 not connected to D7
44+
#define PC14 8 // By default, SB6 open PF0/PC14 not connected to D8
4545
#define PA8 9
4646
#define PA11 10
4747
#define PB5 11

0 commit comments

Comments
 (0)