1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

frdm-kw41z: Use SAUL_GPIO_INVERT on SW3, SW4 inputs

with this flag set, reading 1 means that the button is being pressed.
This commit is contained in:
Joakim Nohlgård 2018-11-16 13:23:08 +01:00
parent 38f8cc2284
commit 9e9a01bc19

View File

@ -64,11 +64,13 @@ static const saul_gpio_params_t saul_gpio_params[] =
.name = "SW3",
.pin = BTN0_PIN,
.mode = BTN0_MODE,
.flags = (SAUL_GPIO_INVERTED),
},
{
.name = "SW4",
.pin = BTN1_PIN,
.mode = BTN1_MODE,
.flags = (SAUL_GPIO_INVERTED),
},
};