From 95983b01c33cc72dace8d10530fd055406ac74ac Mon Sep 17 00:00:00 2001 From: liyashuai Date: Fri, 6 Jan 2023 16:06:56 +0800 Subject: [PATCH] change esp32h2 to iot button, update iot button version to 2.5.0 --- device_hal/button_driver/iot_button/idf_component.yml | 2 +- device_hal/device/esp32h2_devkit_c/device.c | 2 +- device_hal/device/esp32h2_devkit_c/esp_matter_device.cmake | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/device_hal/button_driver/iot_button/idf_component.yml b/device_hal/button_driver/iot_button/idf_component.yml index d8018ad8a..248147e6c 100644 --- a/device_hal/button_driver/iot_button/idf_component.yml +++ b/device_hal/button_driver/iot_button/idf_component.yml @@ -1,3 +1,3 @@ ## IDF Component Manager Manifest File dependencies: - espressif/button: "=2.3.0" + espressif/button: "=2.5.0" diff --git a/device_hal/device/esp32h2_devkit_c/device.c b/device_hal/device/esp32h2_devkit_c/device.c index 55c3f2748..fa8e7d1b3 100644 --- a/device_hal/device/esp32h2_devkit_c/device.c +++ b/device_hal/device/esp32h2_devkit_c/device.c @@ -17,7 +17,7 @@ #define LED_GPIO_PIN GPIO_NUM_8 #define LED_CHANNEL 0 /* RMT_CHANNEL_0 */ -#define BUTTON_GPIO_PIN GPIO_NUM_0 +#define BUTTON_GPIO_PIN GPIO_NUM_9 static const char *TAG = "device"; diff --git a/device_hal/device/esp32h2_devkit_c/esp_matter_device.cmake b/device_hal/device/esp32h2_devkit_c/esp_matter_device.cmake index b546d3dad..6f6379426 100644 --- a/device_hal/device/esp32h2_devkit_c/esp_matter_device.cmake +++ b/device_hal/device/esp32h2_devkit_c/esp_matter_device.cmake @@ -5,7 +5,7 @@ endif() SET(device_type esp32h2_devkit_c) SET(led_type ws2812) -SET(button_type hollow_button) +SET(button_type iot) SET(extra_components_dirs_append "$ENV{ESP_MATTER_DEVICE_PATH}/../../led_driver" - "$ENV{ESP_MATTER_DEVICE_PATH}/../../button_driver/button") + "$ENV{ESP_MATTER_DEVICE_PATH}/../../button_driver/iot_button")