Skip to content

Commit ba7948e

Browse files
committed
set input pins functionally to gpio input
1 parent 11f1003 commit ba7948e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/gpio/gpio_utils.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ uint32_t inPinCount() {
2727
void initOutPins() {
2828
for (uint32_t i = 0; i < outPinCount(); i++) {
2929
gpio_init(outPins[i]);
30-
gpio_set_dir(outPins[i], 1);
30+
gpio_set_dir(outPins[i], true);
3131
gpio_put(outPins[i], 0);
3232
}
3333
}
3434

3535
void initInPins() {
3636
for (uint32_t i = 0; i < inPinCount(); i++) {
3737
gpio_init(inPins[i]);
38-
gpio_set_dir(inPins[i], 1);
38+
gpio_set_dir(inPins[i], false);
3939
gpio_put(inPins[i], 0);
4040
}
4141
}

0 commit comments

Comments
 (0)