Skip to content
Snippets Groups Projects
Commit 9e9a01bc authored by Joakim Nohlgård's avatar Joakim Nohlgård
Browse files

frdm-kw41z: Use SAUL_GPIO_INVERT on SW3, SW4 inputs

with this flag set, reading 1 means that the button is being pressed.
parent 38f8cc22
No related branches found
No related tags found
No related merge requests found
...@@ -64,11 +64,13 @@ static const saul_gpio_params_t saul_gpio_params[] = ...@@ -64,11 +64,13 @@ static const saul_gpio_params_t saul_gpio_params[] =
.name = "SW3", .name = "SW3",
.pin = BTN0_PIN, .pin = BTN0_PIN,
.mode = BTN0_MODE, .mode = BTN0_MODE,
.flags = (SAUL_GPIO_INVERTED),
}, },
{ {
.name = "SW4", .name = "SW4",
.pin = BTN1_PIN, .pin = BTN1_PIN,
.mode = BTN1_MODE, .mode = BTN1_MODE,
.flags = (SAUL_GPIO_INVERTED),
}, },
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment