-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathm5coreink.yaml
70 lines (57 loc) · 1.05 KB
/
m5coreink.yaml
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
65
66
67
68
69
70
esphome:
name: "m5coreink"
esp32:
board: m5stack-coreink
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_pwd
manual_ip:
static_ip: 192.168.1.201
gateway: 192.168.1.1
subnet: 255.255.255.0
captive_portal:
logger:
level: VERBOSE
api:
password: !secret api_pwd
ota:
password: !secret ota_pwd
binary_sensor:
- platform: gpio
name: press
pin: GPIO38
on_press:
then:
- logger.log: "press"
- platform: gpio
name: up
pin: GPIO37
on_press:
then:
- logger.log: "up"
- platform: gpio
name: down
pin: GPIO39
on_press:
then:
- logger.log: "down"
font:
- file: 'fonts/28 Days Later.ttf'
id: font1
size: 30
spi:
clk_pin: GPIO18
mosi_pin: GPIO23
display:
- platform: waveshare_epaper
id: my_display
cs_pin: GPIO9
dc_pin: GPIO15
busy_pin:
number: GPIO4
inverted: true
reset_pin: GPIO0
model: 1.54in-m5coreink-m09
update_interval: 8s
lambda: |-
it.print(5, 5, id(font1), "Timi a reussi!");