Files
ESPC3-wireless/app/button/button.h

24 lines
523 B
C
Raw Normal View History

2025-02-18 17:41:45 +08:00
/**
* @file button.h
* @author LokLiang
* @brief board_config multi_button
* @version 0.1
* @date 2024-04-23
*
* @copyright Copyright (c) 2024
*
*/
#pragma once
#include "multi_button.h"
#include "config/board_config.h"
button_hdl_t *btn_attach(const cfg_board_pin_io_t *pin,
button_callback_fn cb,
uint8_t event_mask);
void btn_delete(button_hdl_t *handler);
press_event_t btn_get_event(button_hdl_t *handle);