fix ESP32 IOT Pin Bug, Pin35 are used for input and cannot be used for output. changed to Pin12. (#349)

This commit is contained in:
ooxxU
2025-03-14 23:31:54 +08:00
committed by GitHub
parent 4a7ef0b995
commit a7ed9fd0cf

View File

@@ -13,7 +13,7 @@ namespace iot {
class Lamp : public Thing { class Lamp : public Thing {
private: private:
#ifdef CONFIG_IDF_TARGET_ESP32 #ifdef CONFIG_IDF_TARGET_ESP32
gpio_num_t gpio_num_ = GPIO_NUM_35; gpio_num_t gpio_num_ = GPIO_NUM_12;
#else #else
gpio_num_t gpio_num_ = GPIO_NUM_18; gpio_num_t gpio_num_ = GPIO_NUM_18;
#endif #endif