nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches
button_assignments.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2022 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
14#ifndef _BUTTON_ASSIGNMENTS_H_
15#define _BUTTON_ASSIGNMENTS_H_
16
17#include <zephyr/drivers/gpio.h>
18
22 BUTTON_VOLUME_DOWN = DT_GPIO_PIN(DT_ALIAS(sw0), gpios),
23 BUTTON_VOLUME_UP = DT_GPIO_PIN(DT_ALIAS(sw1), gpios),
24 BUTTON_PLAY_PAUSE = DT_GPIO_PIN(DT_ALIAS(sw2), gpios),
25 BUTTON_4 = DT_GPIO_PIN(DT_ALIAS(sw3), gpios),
26 BUTTON_5 = DT_GPIO_PIN(DT_ALIAS(sw4), gpios),
27};
28
29#endif /* _BUTTON_ASSIGNMENTS_H_ */
button_pin_names
List of buttons and associated metadata.
Definition button_assignments.h:21
@ BUTTON_5
Definition button_assignments.h:26
@ BUTTON_4
Definition button_assignments.h:25
@ BUTTON_VOLUME_UP
Definition button_assignments.h:23
@ BUTTON_VOLUME_DOWN
Definition button_assignments.h:22
@ BUTTON_PLAY_PAUSE
Definition button_assignments.h:24