mirror of
https://github.com/esphome/esphome.git
synced 2026-09-11 23:37:34 +00:00
Co-authored-by: Claude Opus 5 <noreply@anthropic.com> Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
76 lines
1.5 KiB
YAML
76 lines
1.5 KiB
YAML
host:
|
|
mac_address: "62:23:45:AF:B3:DD"
|
|
|
|
display:
|
|
- platform: sdl
|
|
id: sdl_sdl_display
|
|
update_interval: 1s
|
|
auto_clear_enabled: false
|
|
show_test_card: true
|
|
dimensions:
|
|
width: 450
|
|
height: 600
|
|
window_options:
|
|
position:
|
|
x: 100
|
|
y: 100
|
|
snapshot_key: SDLK_F12
|
|
|
|
- platform: sdl
|
|
id: headless_display
|
|
headless: true
|
|
show_test_card: true
|
|
dimensions:
|
|
width: 320
|
|
height: 240
|
|
|
|
- platform: sdl
|
|
id: second_display
|
|
dimensions:
|
|
width: 450
|
|
height: 600
|
|
window_options:
|
|
position:
|
|
centered_on_display: 1
|
|
|
|
- platform: sdl
|
|
id: third_display
|
|
dimensions:
|
|
width: 450
|
|
height: 600
|
|
window_options:
|
|
position:
|
|
centered_on_display: 0
|
|
|
|
binary_sensor:
|
|
- platform: sdl
|
|
sdl_id: sdl_sdl_display
|
|
id: key_up
|
|
key: SDLK_UP
|
|
- platform: sdl
|
|
sdl_id: sdl_sdl_display
|
|
id: key_down
|
|
key: SDLK_DOWN
|
|
- platform: sdl
|
|
sdl_id: sdl_sdl_display
|
|
id: key_enter
|
|
key: SDLK_RETURN
|
|
|
|
esphome:
|
|
# A name of your own is only good for one snapshot - a second one under the same name fails
|
|
# rather than writing over the first - so these run once rather than on a repeating interval.
|
|
on_boot:
|
|
- delay: 2s
|
|
- snapshot.take:
|
|
id: headless_display
|
|
filename: test_card.bmp
|
|
- snapshot.take:
|
|
id: headless_display
|
|
filename: !lambda 'return "shot.bmp";'
|
|
|
|
interval:
|
|
# A generated name has the time in it, so this one can repeat.
|
|
- interval: 10s
|
|
then:
|
|
- snapshot.take: sdl_sdl_display
|