mirror of
https://github.com/nekorevend/esphome-emporia-vue-utility.git
synced 2026-01-08 20:40:39 -07:00
Use pinMode to configure GPIO pins (#8)
After upgrading to esp32 Arduino 3.1.3, gpio_pad_select_gpio is no longer exposed.
This commit is contained in:
@@ -7,10 +7,8 @@ namespace emporia_vue_utility {
|
||||
|
||||
void EmporiaVueUtility::setup() {
|
||||
#if USE_LED_PINS
|
||||
gpio_pad_select_gpio(LED_PIN_LINK);
|
||||
gpio_set_direction(LED_PIN_LINK, GPIO_MODE_OUTPUT);
|
||||
gpio_pad_select_gpio(LED_PIN_WIFI);
|
||||
gpio_set_direction(LED_PIN_WIFI, GPIO_MODE_OUTPUT);
|
||||
pinMode(LED_PIN_LINK, OUTPUT);
|
||||
pinMode(LED_PIN_WIFI, OUTPUT);
|
||||
#endif
|
||||
led_link(false);
|
||||
led_wifi(false);
|
||||
|
||||
Reference in New Issue
Block a user