forked from xiaozhi/xiaozhi-esp32
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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user