comparison esp/do-squib-touch-lcd.yaml @ 7:b46679798c51

mv esp code to this repo. still trying to get correct refreshes
author drewp@bigasterisk.com
date Sun, 10 Mar 2024 15:03:53 -0700
parents
children 47795c3121f1
comparison
equal deleted inserted replaced
6:e36abecb48a1 7:b46679798c51
1 esphome:
2 name: do-squib-touch-lcd
3 friendly_name: do-squib-touch-lcd
4 includes:
5 - update_lcd_block.h
6
7 esp32:
8 board: denky32
9 framework:
10 # ard
11 # [18:48:34][D][debug:080]: Free Heap Size: 107148 bytes
12 # [18:48:34][D][debug:110]: Flash Chip: Size=4096kB Speed=80MHz Mode=DIO
13 type: arduino
14
15 # esp
16 # [18:50:26][D][debug:080]: Free Heap Size: 54488 bytes
17 # type: esp-idf
18 # sdkconfig_options:
19 # COMPILER_OPTIMIZATION_SIZE: y
20
21 debug:
22 update_interval: 20s
23
24 logger:
25 level: DEBUG
26
27 mqtt:
28 broker: "mqtt2.bigasterisk.com"
29 port: 1883
30 username: ""
31 password: ""
32 id: mqtt_client
33 on_message:
34 topic: 'display/squib/updates'
35 then:
36 - lambda: |-
37 update_lcd_block(id(lcd), x);
38 light:
39 - platform: status_led
40 id: "status_out"
41 pin: 2
42
43 - platform: monochromatic
44 output: lcd_bright
45 id: back_light
46 name: lcd_bright
47 restore_mode: ALWAYS_ON
48
49 ota:
50
51 wifi:
52 ssid: !secret wifi_ssid
53 password: !secret wifi_password
54
55 spi:
56 clk_pin: GPIO21
57 mosi_pin: GPIO32
58 miso_pin: GPIO4
59
60 output:
61 - platform: ledc
62 pin: GPIO17
63 id: lcd_bright
64
65 display:
66 - platform: ili9xxx
67 id: lcd
68 model: ILI9481-18
69 dc_pin: GPIO22
70 reset_pin: GPIO25
71 cs_pin: GPIO27
72 dimensions:
73 width: 320
74 height: 320
75 data_rate: "10MHz"
76 update_interval: "never"
77 auto_clear_enabled: false
78
79 # breakout kit esp board has these neighbors: gnd 13 12 14 26 27 25 33 32 35 34 *and* 21 19 18 5 17 16 4 2 15 gnd 3v3
80
81 # esp # lcdboard
82 # --- #------
83 # 3v3 # 1 VCC
84 # gnd # 2 GND
85 # 4 # 3 CS low=enable
86 # 16 # 4 RESET
87 # 17 # 5 DC / RS
88 # 18 # 6 SDI (MOSI)
89 # 19 # 7 SCK
90 # 21 # 8 LED
91 # 34 # 9 SDO (MISO)
92 #
93 # 32 # 10 T_CLK
94 # 33 # 11 T_CS
95 # 25 # 12 T_DIN
96 # 27 # 13 T_DO
97 # 26 # 14 T_IRQ (used?)
98
99 # For ESP32-WROOM Series of modules, GPIO6 ~ GPIO11 are pins for flash and cannot
100 # be set for other uses.
101
102 ####################################################
103
104 # little board, also WROOM32, has these pins near each other:
105 # gnd 27 25 22 32 21 17 4 16 0 gnd 2 vcc ... rst gnd 36 18 35 19 33 23 34 5 3v3
106 # * * * * * * * ro * ro * * * ro * *
107
108 # esp # lcdboard
109 # --- #------
110 # 3v3 # 1 VCC
111 # gnd # 2 GND
112 # 27 # 3 CS low=enable
113 # 25 # 4 RESET
114 # 22 # 5 DC / RS
115 # 32 # 6 SDI (MOSI)
116 # 21 # 7 SCK
117 # 17 # 8 LED
118 # 4 # 9 SDO (MISO)
119 #
120 # 33 # 10 T_CLK
121 # 19 # 11 T_CS
122 # 35 # 12 T_DIN
123 # 18 # 13 T_DO
124 # 23 # 14 T_IRQ (used?)
125
126
127
128
129
130
131
132
133
134
135 # mosquitto_pub -h mqtt2 -t do-squib-touch-lcd/light/lcd_bright/command -m '{"brightness":255,"state":"ON"}'