generated from esphome/esphome-project-template
-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
nesp-s2.yaml
62 lines (59 loc) · 2.02 KB
/
nesp-s2.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
packages:
api: !include nesp-common.yaml
esphome:
name: ${device_name}
# Automatically add the mac address to the name
# so you can use a single firmware for all devices
name_add_mac_suffix: false
friendly_name: ${friendly_name}
comment: ${device_description}
# This will allow for (future) project identification,
# configuration and updates.
project:
name: ${project_base}.${project_name}
version: $project_version
# special board needs special options
platformio_options:
board_build.flash_mode: qio
board_build.core: esp32
board_build.mcu: esp32s2
board_build.variant": esp32s2
board_build.f_cpu: 240000000L
board_build.f_flash: 80000000L
board_build.flash_size: 16MB
board_upload.maximum_ram_size: 327680
board_upload.maximum_size": 16777216
board_upload.speed": 460800
# TAKEN FROM WLED MM - https://github.com/MoonModules/WLED
build_flags: [
"-DARDUINO_ARCH_ESP32S2",
"-DCONFIG_IDF_TARGET_ESP32S2=1",
"-DARDUINO_USB_MSC_ON_BOOT=0",
"-DARDUINO_USB_DFU_ON_BOOT=0",
"-DCO",
"-DARDUINO_USB_MODE=0" # this flag is mandatory for ESP32-S2 !
]
on_boot:
priority: -100.0 # At this priority, pretty much everything should already be initialized.
then:
- script.execute: show_page_boot
esp32:
board: esp32-s2-kaluga-1 #esp32-s2-saola-1
variant: esp32s2
framework:
type: esp-idf
version: '5.3.0'
platform_version: '6.8.0'
sdkconfig_options:
CONFIG_ESPTOOLPY_FLASHSIZE_16MB: y
CONFIG_COMPILER_OPTIMIZATION: CONFIG_COMPILER_OPTIMIZATION_PERF
CONFIG_BOOTLOADER_COMPILER_OPTIMIZATION: BOOTLOADER_COMPILER_OPTIMIZATION_PERF
CONFIG_COMPILER_OPTIMIZATION_SIZE: y
CONFIG_BOOTLOADER_COMPILER_OPTIMIZATION_SIZE: y
CONFIG_IDF_TARGET_ESP32S2: y
CONFIG_FREERTOS_UNICORE: y # single core
advanced:
ignore_efuse_mac_crc: true
# This should point to the public location of this yaml file.
dashboard_import:
package_import_url: github://velijv/nesp/nesp-s2.yaml@main