-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
board_esp32-C3.yaml
70 lines (59 loc) · 1.64 KB
/
board_esp32-C3.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: ${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: esp32-c3-devkitm-1 #ESP C3 supermini : makergo_c3_supermini or nologo_esp32c3_super_mini or seeed_xiao_esp32c3 , esp32-c3-devkitm-1
variant: esp32c3
framework: esp-idf #arduino
# https://www.sudo.is/docs/esphome/boards/esp32c3supermini/
#Pin definition
sn74hc595_data_pin: GPIO21
sn74hc595_clock_pin: GPIO10
sn74hc595_latch_pin: GPIO20
# sn74hc595_oe_pin: GPIO18
adc_bemf_1_pin: GPIO0
adc_bemf_2_pin: GPIO1
adc_bemf_3_pin: GPIO3
adc_bemf_4_pin: GPIO4
# adc_zero_calibration: "0.0"
onewire_pin: GPIO6
esp32:
board: ${board}
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"
pin:
number: GPIO8
inverted: true
restore_mode: ALWAYS_OFF
psram:
mode: octal
speed: 80MHz