Use NRF_DT_GPIOS_TO_PSEL() in calls to nRF GPIO HAL functions as they need a psel value, a pin number combined with the corresponding GPIO port number, not only the pin number as provided by DT_GPIO_PIN(). This way buttons connected to pins in the P1 port can also be handled properly. Replace also DT_NODELABEL(button0) with DT_ALIAS(sw0) for consistency with other samples that use the standard button. Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no> |
||
|---|---|---|
| .. | ||
| 96b_argonkey | ||
| arc_secure_services | ||
| bbc_microbit | ||
| esp32 | ||
| google_kukui | ||
| intel_s1000_crb | ||
| mec15xxevb_assy6853 | ||
| nrf | ||
| qemu_cortex_a53/reserved_memory | ||
| reel_board/mesh_badge | ||
| sensortile_box | ||
| stm32 | ||
| ti/cc13x2_cc26x2/system_off | ||
| up_squared/gpio_counter | ||
| boards.rst | ||