Skip to content

Commit 3a65027

Browse files
committed
node_buttons: allow controlling the LEDs as output
1 parent c357f4e commit 3a65027

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Core/Src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ void configurePins() {
140140
switch (ADDRESS) {
141141
case NODE_BUTTONS:
142142
GPIO_InitStruct.Pin = GPIO_PIN_0 | GPIO_PIN_1 | GPIO_PIN_2;
143-
GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
143+
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
144144
GPIO_InitStruct.Pull = GPIO_NOPULL;
145145
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
146146
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);

0 commit comments

Comments
 (0)