Hi everybody, I purchased this THIS ESP32-S3 and I flashed this code, but when I press the switch the led don’t power on
substitutions:
name: "esp32-s3"
friendly_name: ESP32 S3
esphome:
name: ${name}
friendly_name: ${friendly_name}
project:
name: rg4tech.esp32-s3-16I-16O
version: "1.0"
esp32:
board: esp32-s3-devkitc-1
framework:
type: arduino
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: "tjH+hlwLwoR0/mdZkERXbJFCeS3Fc6elKvYC7GbRu2I="
ota:
- platform: esphome
password: "1715f7f9d0b359ac575b0ae96f7fbb15"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Youtube Fallback Hotspot"
password: "m4qI4TFZeAPT"
captive_portal:
binary_sensor:
- platform: gpio
pin: GPIO4
name: "Interruttore LED"
id: led_switch
on_press:
then:
- switch.toggle: led_output
# Configura il LED su GPIO5
switch:
- platform: gpio
pin: GPIO5
id: led_output
name: "LED GPIO5"
inverted: false
The board have two connecrtor, one called COM and other USB, I connect the board with PC via COM connector, the LED cathode to GRD and anode to PIN5, the switch is connected one wire on GND and other on PIN4
Can you help me please? Thanks and ciao