mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-30 02:15:22 +00:00
Convert the sample to use the new GPIO API and additionally: - add some error messages for unsuccessful GPIO API calls - correct the index of `def_val` element used in the `right_button` callback, to match the one used when the callback is installed - use flags defined in devicetree for the pin that drives the LED (for consistency, as this does not make much difference for a pin that is only toggled) Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no> |
||
---|---|---|
.. | ||
canbus | ||
console | ||
fs | ||
ipc | ||
logging | ||
mgmt | ||
nvs | ||
power/device_pm | ||
settings | ||
shell | ||
usb | ||
subsys.rst |