-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
board_esp32.yaml
66 lines (55 loc) · 1.49 KB
/
board_esp32.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
esphome:
name: ${name}
on_boot:
priority: -200
then:
- delay: ${onboot_valve_calibration_delay} #1min
- script.execute: valve_maintenance
project:
name: "nliaudat.floor-heating-controller"
version: "${revision}.dev"
###### only for ESP32-C3 boot loop fix
# platformio_options:
# board_build.f_flash: 40000000L
# board_build.flash_mode: dio
# board_build.flash_size: 4MB
substitutions:
#board and compilation
board: az-delivery-devkit-v4 #nodemcu-32s #esp-wrover-kit nodemcu-32s #
framework: esp-idf #arduino
#Pin definition
sn74hc595_data_pin: GPIO16
sn74hc595_clock_pin: GPIO5
sn74hc595_latch_pin: GPIO17
# sn74hc595_oe_pin: GPIO18
adc_bemf_1_pin: GPIO36
adc_bemf_2_pin: GPIO39
adc_bemf_3_pin: GPIO34
adc_bemf_4_pin: GPIO35
# adc_zero_calibration: "-0.075"
onewire_pin: GPIO23
esp32:
board: ${board} #nodemcu-32s
framework:
type: ${framework} #esp-idf #arduino
version: recommended #latest
sdkconfig_options:
CONFIG_COMPILER_OPTIMIZATION_SIZE: y
# Advanced tweaking options for ESP32-C3
# advanced:
# ignore_efuse_mac_crc: false
preferences:
flash_write_interval: 60min
ota:
- platform: esphome
safe_mode:
light:
- platform: status_led
name: "${name} Status LED"
id: ${id_prefix}status_led
icon: "mdi:alarm-light"
restore_mode: ALWAYS_OFF
pin: GPIO02
psram:
mode: octal
speed: 80MHz