1399
|
1 # https://cdn.hackaday.io/files/269911154782944/Heltec_WIFI-LoRa-32_DiagramPinout.jpg
|
|
2
|
|
3 esphome:
|
|
4 name: cabin
|
|
5 platform: ESP32
|
|
6 board: lolin32
|
|
7 build_path: build
|
|
8 esphome_core_version: latest
|
|
9
|
|
10 wifi:
|
|
11 ssid: !secret wifi_ssid
|
|
12 password: !secret wifi_password
|
|
13 domain: ''
|
|
14
|
|
15 mqtt:
|
|
16 broker: '10.2.0.1'
|
|
17 port: 1883
|
|
18 username: ''
|
|
19 password: ''
|
|
20
|
|
21 logger:
|
|
22 baud_rate: 115200
|
|
23 level: DEBUG
|
|
24
|
|
25 ota:
|
|
26
|
|
27
|
|
28 #dallas:
|
|
29 # - pin: GPIO16
|
|
30 #sensor:
|
|
31 # - platform: dallas
|
|
32 # index: 0
|
|
33 # name: temperature
|
|
34
|
|
35 light:
|
|
36 - platform: fastled_clockless
|
|
37 chipset: WS2812B
|
|
38 pin: GPIO21
|
|
39 num_leds: 16
|
|
40 rgb_order: GRB
|
|
41 name: "rgb"
|
|
42
|
|
43 i2c:
|
|
44 sda: 4
|
|
45 scl: 15
|
|
46
|
|
47 font:
|
|
48 - file: "/usr/share/fonts/truetype/ttf-bitstream-vera/Vera.ttf"
|
|
49 id: font_vera
|
|
50 size: 14
|
|
51
|
|
52 display:
|
|
53 - platform: ssd1306_i2c
|
|
54 model: "SSD1306 128x64"
|
|
55 reset_pin: 16
|
|
56 address: 0x3C
|
|
57 lambda: |-
|
|
58 it.print(0, 0, id(font_vera), "cabin 1.0: running");
|