Skip to content
Snippets Groups Projects
Unverified Commit ecea6147 authored by Peter Kietzmann's avatar Peter Kietzmann Committed by GitHub
Browse files

Merge pull request #8305 from aabadie/pr/boards/microbit_saul_gpio

boards/microbit: use gpio inverted flag for buttons
parents 29f5de38 fb1eff1e
No related branches found
No related tags found
No related merge requests found
...@@ -35,12 +35,14 @@ static const saul_gpio_params_t saul_gpio_params[] = ...@@ -35,12 +35,14 @@ static const saul_gpio_params_t saul_gpio_params[] =
{ {
.name = "Button A", .name = "Button A",
.pin = BTN0_PIN, .pin = BTN0_PIN,
.mode = BTN0_MODE .mode = BTN0_MODE,
.flags = SAUL_GPIO_INVERTED,
}, },
{ {
.name = "Button B", .name = "Button B",
.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