mirror of
https://github.com/esphome/esphome.git
synced 2026-10-04 18:11:29 +00:00
[animation] Use register_apply_action for next_frame, prev_frame and set_frame (#19633)
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
button:
|
||||
- platform: template
|
||||
name: Animation Actions
|
||||
on_press:
|
||||
- animation.next_frame: rgb_animation
|
||||
- animation.prev_frame: rgb_animation
|
||||
- animation.set_frame:
|
||||
id: rgb_animation
|
||||
frame: 2
|
||||
@@ -0,0 +1,14 @@
|
||||
packages:
|
||||
spi: !include ../../test_build_components/common/spi/esp8266-ard.yaml
|
||||
animation: !include common.yaml
|
||||
actions: !include common-actions.yaml
|
||||
|
||||
display:
|
||||
- platform: ili9xxx
|
||||
id: animation_main_lcd
|
||||
spi_id: spi_bus
|
||||
model: ili9342
|
||||
cs_pin: 5
|
||||
dc_pin: 15
|
||||
reset_pin: 16
|
||||
invert_colors: false
|
||||
Reference in New Issue
Block a user