nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches
button_handler.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
16#ifndef _BUTTON_HANDLER_H_
17#define _BUTTON_HANDLER_H_
18
19#include <stdint.h>
20#include <zephyr/drivers/gpio.h>
21
30
38int button_pressed(gpio_pin_t button_pin, bool *button_pressed);
39
44#endif /* _BUTTON_HANDLER_H_ */
int button_handler_init(void)
Initialize button handler, with buttons defined in button_assignments.h.
int button_pressed(gpio_pin_t button_pin, bool *button_pressed)
Check button state.