mirror of
https://github.com/espressif/esp-matter.git
synced 2026-04-27 19:13:13 +00:00
22 lines
584 B
C++
22 lines
584 B
C++
/*
|
|
This example code is in the Public Domain (or CC0 licensed, at your option.)
|
|
|
|
Unless required by applicable law or agreed to in writing, this
|
|
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
|
CONDITIONS OF ANY KIND, either express or implied.
|
|
*/
|
|
|
|
#include "bsp/esp-bsp.h"
|
|
|
|
#include <app_priv.h>
|
|
#include <app_reset.h>
|
|
|
|
app_driver_handle_t app_driver_button_init()
|
|
{
|
|
/* Initialize button */
|
|
button_handle_t btns[BSP_BUTTON_NUM];
|
|
ESP_ERROR_CHECK(bsp_iot_button_create(btns, NULL, BSP_BUTTON_NUM));
|
|
|
|
return (app_driver_handle_t)btns[0];
|
|
}
|