This commit is contained in:
2024-04-10 14:49:07 +02:00
parent 956236ca8d
commit 523d1143f3
111 changed files with 41255 additions and 98061 deletions

View File

@@ -0,0 +1,12 @@
output:
- platform: ledc
pin: ${pin_lcd_bl}
id: out_backlight
light:
- platform: monochromatic
name: "${friendly_name} Back Light"
output: out_backlight
id: backlight
restore_mode: Restore_and_on

17
esphome/templates/color.yaml Executable file
View File

@@ -0,0 +1,17 @@
color:
- id: red
red: 100%
green: 3%
blue: 5%
- id: white
red: 100%
green: 100%
blue: 100%
- id: green
red: 0%
green: 100%
blue: 0%
- id: black
red: 0%
green: 0%
blue: 0%

View File

@@ -0,0 +1,23 @@
---
external_components:
- source:
type: local
path: components
light:
- platform: fastled_spi
id: led_lights
data_pin: ${pin_led_data}
clock_pin: ${pin_led_clk}
restore_mode: RESTORE_DEFAULT_ON
name: ${device_name}_leds
chipset: ${led_chipset}
rgb_order: BGR
num_leds: ${num_leds}
effects:
- flicker:
name: "Flicker"
alpha: 95%
intensity: 1.5%
- addressable_rainbow:
- addressable_scan:

View File

@@ -8,7 +8,7 @@ light:
name: ${device_name}_leds
chipset: ${chipset}
rgb_order: GRB
num_leds: 2 #${num_leds}
num_leds: ${num_leds}
pin: ${pin_led1}
effects:
- flicker:

View File

@@ -1,3 +1,8 @@
# logging
logger:
baud_rate: 115200
baud_rate: 115200
logs:
display: ERROR
sensor: ERROR
cover: ERROR
switch: ERROR

View File

@@ -0,0 +1,11 @@
touchscreen:
- platform: ft63x6
id: ${id_prefix}_touch
i2c_id: bus_a
transform:
mirror_y: true
swap_xy: true
on_touch:
- logger.log:
format: Touch at (%d, %d)
args: [touch.x, touch.y]