Hi, I am trying to get a candlelight flickering effect on an LED connected to GPIO12 on my ESP8266 board but I am stuck.
My current code is this:
esphome: name: lilygo1 platform: ESP8266 board: esp01_1m wifi: ssid: "redacted" password: "redacted" manual_ip: static_ip: 192.168.3.150 gateway: 192.168.3.1 subnet: 255.255.255.0 # Enable fallback hotspot (captive portal) in case wifi connection fails ap: ssid: "redacted" password: "redacted" captive_portal: # Enable logging logger: # Enable Home Assistant API api: ota: switch: - platform: gpio name: "Pin GPIO12" pin: GPIO12 binary_sensor: - platform: gpio name: "Pin GPIO14" pin: GPIO14
Currently if I switch on GPIO12 in home assistant, the LED connected between GPIO14 and Ground pin will light up. So I am hoping I am in the right path.
Now to achieve the candlelight effect, from googling, it would appear if I set this GPIO to have a PWM output of something like this:
How would I integrate the above code into the yaml file?
Thanks in advance