diff --git a/esp32-c3-oled/led3xdrv-pro.yml b/esp32-c3-oled/led3xdrv-pro.yml index 50bbf0e..5ee4b65 100644 --- a/esp32-c3-oled/led3xdrv-pro.yml +++ b/esp32-c3-oled/led3xdrv-pro.yml @@ -5,6 +5,8 @@ esphome: esp32: board: esp32-c3-devkitm-1 variant: esp32c3 + framework: + type: esp-idf logger: baud_rate: 0 @@ -27,15 +29,15 @@ output: - platform: ledc pin: GPIO4 id: led_pwm01 - frequency: 20000 Hz + frequency: 10000 Hz - platform: ledc pin: GPIO5 id: led_pwm02 - frequency: 20000 Hz + frequency: 10000 Hz - platform: ledc pin: GPIO6 id: led_pwm03 - frequency: 20000 Hz + frequency: 10000 Hz light: - platform: monochromatic @@ -51,6 +53,19 @@ light: output: led_pwm03 gamma_correct: 1.0 +switch: + - platform: gpio + id: grove_relay + name: "Power AC-DC" + pin: + number: GPIO1 + mode: + output: true + pullup: false + pulldown: false + inverted: false # jeśli nie kliknie – zmień na true i sprawdź + restore_mode: ALWAYS_OFF + button: - platform: restart name: "Restart Device"