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:
parent
38f8cc2284
commit
9e9a01bc19
@ -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),
|
||||
},
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user