mirror of
https://github.com/esphome/esphome.git
synced 2025-09-01 19:02:18 +01:00
[sdl] Implement binary sensors from keystrokes (#8207)
Co-authored-by: clydebarrow <2366188+clydebarrow@users.noreply.github.com>
This commit is contained in:
@@ -10,3 +10,14 @@ display:
|
||||
dimensions:
|
||||
width: 450
|
||||
height: 600
|
||||
|
||||
binary_sensor:
|
||||
- platform: sdl
|
||||
id: key_up
|
||||
key: SDLK_a
|
||||
- platform: sdl
|
||||
id: key_down
|
||||
key: SDLK_d
|
||||
- platform: sdl
|
||||
id: key_enter
|
||||
key: SDLK_s
|
||||
|
Reference in New Issue
Block a user