-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsentio_example.yaml
More file actions
64 lines (56 loc) · 1.12 KB
/
sentio_example.yaml
File metadata and controls
64 lines (56 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
esphome:
name: sentio-test
esp32:
board: esp32dev
framework:
type: arduino
external_components:
- source: components
logger:
spi:
clk_pin: GPIO18
mosi_pin: GPIO23
miso_pin: GPIO19
i2c:
sda: GPIO21
scl: GPIO22
display:
- platform: ili9341
model: TFT_2.4
id: my_display
cs_pin: GPIO5
dc_pin: GPIO2
lambda: |-
// Visual Debug: Red Dot at touch position
for (auto t : id(my_sentio)->touches) {
it.filled_circle(t.x, t.y, 5, Color(255, 0, 0));
}
touchscreen:
- platform: gt911
id: raw_touch
internal: true
i2c_id: i2c
interrupt_pin: GPIO4
- platform: sentio
id: my_sentio
source: raw_touch
display_width: 320
display_height: 240
# Test all params
sleep_timeout: 10s
suppress_wake_click: true
swap_xy: true
invert_x: true
invert_y: false
debounce_threshold: 10ms
debug_raw_touch: true
on_swipe_left:
- logger.log: "Left"
on_swipe_right:
- logger.log: "Right"
on_tap:
- logger.log: "Tap"
on_wake:
- logger.log: "Wake"
on_sleep:
- logger.log: "Sleep"