mirror of
https://github.com/nekorevend/esphome-emporia-vue-utility.git
synced 2026-01-10 05:10:40 -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() {
|
void EmporiaVueUtility::setup() {
|
||||||
#if USE_LED_PINS
|
#if USE_LED_PINS
|
||||||
gpio_pad_select_gpio(LED_PIN_LINK);
|
pinMode(LED_PIN_LINK, OUTPUT);
|
||||||
gpio_set_direction(LED_PIN_LINK, GPIO_MODE_OUTPUT);
|
pinMode(LED_PIN_WIFI, OUTPUT);
|
||||||
gpio_pad_select_gpio(LED_PIN_WIFI);
|
|
||||||
gpio_set_direction(LED_PIN_WIFI, GPIO_MODE_OUTPUT);
|
|
||||||
#endif
|
#endif
|
||||||
led_link(false);
|
led_link(false);
|
||||||
led_wifi(false);
|
led_wifi(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user