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

boards/microbit: use gpio inverted flag for buttons

This commit is contained in:
Alexandre Abadie 2017-12-20 14:21:00 +01:00
parent 90c81f6de6
commit fb1eff1efd

View File

@ -35,12 +35,14 @@ static const saul_gpio_params_t saul_gpio_params[] =
{
.name = "Button A",
.pin = BTN0_PIN,
.mode = BTN0_MODE
.mode = BTN0_MODE,
.flags = SAUL_GPIO_INVERTED,
},
{
.name = "Button B",
.pin = BTN1_PIN,
.mode = BTN1_MODE
.mode = BTN1_MODE,
.flags = SAUL_GPIO_INVERTED,
},
};