Fix Button 2 GPIO assignment
This commit is contained in:
@@ -32,7 +32,7 @@ esphome:
|
|||||||
id(panel)->set_effect_spread(sp == "Per Digit" ? 1 : sp == "Per LED" ? 2 : 0);
|
id(panel)->set_effect_spread(sp == "Per Digit" ? 1 : sp == "Per LED" ? 2 : 0);
|
||||||
std::string ef = id(effect_mode).current_option();
|
std::string ef = id(effect_mode).current_option();
|
||||||
id(panel)->set_effect(ef == "Color Cycle" ? 1 : ef == "Flash" ? 2 : 0);
|
id(panel)->set_effect(ef == "Color Cycle" ? 1 : ef == "Flash" ? 2 : 0);
|
||||||
|
|
||||||
esp32:
|
esp32:
|
||||||
variant: esp32c3
|
variant: esp32c3
|
||||||
flash_size: 4MB
|
flash_size: 4MB
|
||||||
@@ -44,7 +44,7 @@ logger:
|
|||||||
|
|
||||||
# Enable Home Assistant API
|
# Enable Home Assistant API
|
||||||
api:
|
api:
|
||||||
encryption:
|
encryption:
|
||||||
key: !secret apikey
|
key: !secret apikey
|
||||||
actions:
|
actions:
|
||||||
- action: show_seconds
|
- action: show_seconds
|
||||||
@@ -156,11 +156,11 @@ ota:
|
|||||||
|
|
||||||
network:
|
network:
|
||||||
enable_ipv6: true
|
enable_ipv6: true
|
||||||
|
|
||||||
wifi:
|
wifi:
|
||||||
ssid: "Voltage-legacy"
|
ssid: "Voltage-legacy"
|
||||||
password: !secret voltage_legacy_psk
|
password: !secret voltage_legacy_psk
|
||||||
#use_address: ${name}.home
|
#use_address: ${name}.home
|
||||||
power_save_mode: high
|
power_save_mode: high
|
||||||
fast_connect: on
|
fast_connect: on
|
||||||
min_auth_mode: WPA2
|
min_auth_mode: WPA2
|
||||||
@@ -244,7 +244,7 @@ binary_sensor:
|
|||||||
id: button_2
|
id: button_2
|
||||||
name: Button 2
|
name: Button 2
|
||||||
pin:
|
pin:
|
||||||
number: GPIO5 # MCU socket pin 10, net S2, bottom button on the case
|
number: GPIO7 # MCU socket pin 10, net S2, bottom button on the case
|
||||||
mode:
|
mode:
|
||||||
input: true
|
input: true
|
||||||
pullup: true
|
pullup: true
|
||||||
|
|||||||
Reference in New Issue
Block a user