20240410
This commit is contained in:
12
esphome/templates/backlight.yaml
Executable file
12
esphome/templates/backlight.yaml
Executable 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
17
esphome/templates/color.yaml
Executable 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%
|
||||
23
esphome/templates/light_fastled_spi.yaml
Normal file
23
esphome/templates/light_fastled_spi.yaml
Normal 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:
|
||||
@@ -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:
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
# logging
|
||||
logger:
|
||||
baud_rate: 115200
|
||||
baud_rate: 115200
|
||||
logs:
|
||||
display: ERROR
|
||||
sensor: ERROR
|
||||
cover: ERROR
|
||||
switch: ERROR
|
||||
11
esphome/templates/touchscreen_ft63x6.yaml
Executable file
11
esphome/templates/touchscreen_ft63x6.yaml
Executable 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]
|
||||
Reference in New Issue
Block a user