From a7ed9fd0cf7e63dbeeba7309baa9c4f7bcc99565 Mon Sep 17 00:00:00 2001 From: ooxxU <71391474@qq.com> Date: Fri, 14 Mar 2025 23:31:54 +0800 Subject: [PATCH] fix ESP32 IOT Pin Bug, Pin35 are used for input and cannot be used for output. changed to Pin12. (#349) --- main/iot/things/lamp.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/iot/things/lamp.cc b/main/iot/things/lamp.cc index 8848aadf..cf016d47 100644 --- a/main/iot/things/lamp.cc +++ b/main/iot/things/lamp.cc @@ -13,7 +13,7 @@ namespace iot { class Lamp : public Thing { private: #ifdef CONFIG_IDF_TARGET_ESP32 - gpio_num_t gpio_num_ = GPIO_NUM_35; + gpio_num_t gpio_num_ = GPIO_NUM_12; #else gpio_num_t gpio_num_ = GPIO_NUM_18; #endif