-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplatformio.ini
63 lines (52 loc) · 1.39 KB
/
platformio.ini
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
[platformio]
default_envs = firmware-release
data_dir = data
[env]
platform = espressif32@6.3.2
platform_packages = platformio/tool-esptoolpy@1.40501.0
platformio/framework-arduinoespressif32@3.20011.230801
framework = arduino
board = m5stack-atom
board_build.f_cpu = 240000000L
board_build.f_flash = 80000000L
board_build.mcu = esp32
board_build.flash_mode = dio
board_build.partitions = no_ota.csv
lib_deps =
M5Unified@0.1.8
lib_ldf_mode = deep
monitor_speed = 115200
monitor_filters = esp32_exception_decoder, time
upload_speed = 1500000
custom_firmware_version = 0.0.2
custom_firmware_name = the_deepest_offertory_box_firmware
custom_firmware_suffix = .bin
custom_firmware_dir = firmware
[tof]
; https://docs.m5stack.com/en/unit/tof
lib_deps =
${env.lib_deps}
https://github.com/pololu/vl53l0x-arduino
[debug]
build_type = debug
build_flags =
-DCORE_DEBUG_LEVEL=4
-DDEBUG
[firmware]
build_flags =
-DDISTRIBUTION_FIRMWARE
board_build.embed_files =
data/sound-effect.wav
extra_scripts = post:generate_user_custom.py
[env:firmware-release]
extends = tof, firmware
build_flags =
-DCORE_DEBUG_LEVEL=3
${firmware.build_flags}
custom_firmware_version = ${env.custom_firmware_version}_release
[env:firmware-debug]
extends = tof, firmware, debug
build_flags =
${firmware.build_flags}
${debug.build_flags}
custom_firmware_version = ${env.custom_firmware_version}_debug