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:
parent
4a7ef0b995
commit
a7ed9fd0cf
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user