mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-01 23:31:57 +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> |
||
---|---|---|
.. | ||
application_development | ||
basic | ||
bluetooth | ||
boards | ||
cpp_synchronization | ||
display | ||
drivers | ||
hello_world | ||
mpu | ||
net | ||
nfc/nfc_hello | ||
philosophers | ||
portability | ||
posix | ||
sensor | ||
shields | ||
smp | ||
subsys | ||
synchronization | ||
testing/integration | ||
userspace | ||
video | ||
classic.rst | ||
index.rst |