-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathplatformio.ini
173 lines (159 loc) · 4.29 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[env]
platform = espressif32 @ 4.4.0
board = ttgo-t-watch
framework = arduino
lib_deps =
https://github.com/siara-cc/esp32_arduino_sqlite3_lib.git
rpolitex/ArduinoNvs@^2.5
ricmoo/QRCode@^0.0.1
arduino-libraries/Arduino_JSON@^0.1.0
h2zero/NimBLE-Arduino@^1.4.0
https://github.com/lbernstone/miniz-esp32.git
https://github.com/sfranzyshen/ESP-Arduino-Lua.git
https://github.com/esp32beans/BLE_HID_Client.git
monitor_filters =
esp32_exception_decoder
lib_archive = true
board_build.f_flash = 80000000L
board_build.flash_mode = qio
upload_speed = 2000000
monitor_speed = 115200
check_tool = cppcheck
check_flags = --enable=all
board_build.partitions = ./twatch16MB.csv
;board_build.filesystem = littlefs
board_build.embed_files =
asset/boot_sound_muji.mp3
asset/sleep_sound_muji.mp3
asset/openweathermap_org.pem
asset/raw_githubusercontent_com.pem
twatch16MB.csv
build_flags =
-DBOARD_HAS_PSRAM
-mfix-esp32-psram-cache-issue
-DCOMPONENT_EMBED_FILES=asset/boot_sound_muji.mp3:asset/sleep_sound_muji.mp3:asset/sample_text.txt:asset/openweathermap_org.pem:asset/raw_githubusercontent_com.pem
-DLUNOKIOT_BLE_ENABLED
-DCONFIG_BT_NIMBLE_PINNED_TO_CORE=0
-DCONFIG_BT_NIMBLE_SVC_GAP_APPEARANCE=0x00C0
-DLUNOKIOT_WIFI_ENABLED
;-fno-sanitize=shift-base
; -Wl,--wrap=ps_malloc
extra_scripts =
pre:./tool/generateConfig.py
;[env:m5stack-core2]
;board = m5stack-core2
;lib_deps = ${env.lib_deps}
; m5stack/M5Core2
;monitor_speed = 115200
;upload_speed = 115200
;build_flags =
; -DM5_DEV
[BaseTwatchV1]
lib_deps = ${env.lib_deps}
earlephilhower/ESP8266Audio@^1.9.7
;Xinyuan-LilyGO/TTGO_TWatch_Library
https://github.com/Xinyuan-LilyGO/TTGO_TWatch_Library.git
;../TTGO_TWatch_Library_alt/
;https://github.com/lunokjod/TTGO_TWatch_Library_alt.git
build_flags =
-DLILYGO_DEV
-DLILYGO_WATCH_2020_V1
[BaseTwatchV2]
lib_deps = ${env.lib_deps}
;../TTGO_TWatch_Library_alt/
;https://github.com/lunokjod/TTGO_TWatch_Library_alt.git
https://github.com/Xinyuan-LilyGO/TTGO_TWatch_Library.git
build_flags =
-DLILYGO_DEV
-DLILYGO_WATCH_2020_V2
[BaseTwatchV3]
lib_deps = ${env.lib_deps}
earlephilhower/ESP8266Audio@^1.9.7
https://github.com/Xinyuan-LilyGO/TTGO_TWatch_Library.git
;Xinyuan-LilyGO/TTGO_TWatch_Library
;../TTGO_TWatch_Library_alt/
;https://github.com/lunokjod/TTGO_TWatch_Library_alt.git
build_flags =
-DLILYGO_DEV
-DLILYGO_WATCH_2020_V3
-DLUNOKIOT_BATTERY_CHECK
[lWatchDebug]
build_type = debug
build_flags =
${env.build_flags}
-DLOG_LOCAL_LEVEL=0
-DCORE_DEBUG_LEVEL=0
-DLUNOKIOT_DEBUG_ESP32
-DLUNOKIOT_SERIAL
-DLUNOKIOT_SERIAL_SPEED=${env.monitor_speed}
-DLUNOKIOT_DEBUG
-DLUNOKIOT_DEBUG_NETWORK
-DLUNOKIOT_DEBUG_SYSTEM
-DLUNOKIOT_DEBUG_EVENTS
-DLUNOKIOT_DEBUG_UI
-DLUNOKIOT_DEBUG_APPLICATION
-DLUNOKIOT_UPDATES_ENABLED_NO
-DLUNOKIOT_UPDATES_LOCAL_URL_NO
[lWatchRelease]
build_type = release
build_flags =
${env.build_flags}
-DLUNOKIOT_UPDATES_ENABLED
[lWatchBLEDebug]
build_type = debug
build_flags =
${lWatchDebug.build_flags}
-DLUNOKIOT_SILENT_BOOT
-DCONFIG_NIMBLE_CPP_LOG_LEVEL=5
[env:Release-twatch2020_V3]
build_type = release
lib_deps =
${BaseTwatchV3.lib_deps}
build_flags =
${BaseTwatchV3.build_flags}
${lWatchRelease.build_flags}
[env:Debug-twatch2020_V3]
build_type = debug
lib_deps =
${BaseTwatchV3.lib_deps}
build_flags =
${lWatchDebug.build_flags}
${BaseTwatchV3.build_flags}
[env:Release-twatch2020_V2]
build_type = release
lib_deps =
${BaseTwatchV2.lib_deps}
build_flags =
${lWatchRelease.build_flags}
${BaseTwatchV2.build_flags}
[env:Debug-twatch2020_V2]
build_type = debug
lib_deps =
${BaseTwatchV2.lib_deps}
build_flags =
${lWatchDebug.build_flags}
-DLUNOKIOT_SILENT_BOOT
${BaseTwatchV2.build_flags}
[env:Release-twatch2020_V1]
build_type = release
build_flags =
${lWatchRelease.build_flags}
${BaseTwatchV1.build_flags}
lib_deps =
${BaseTwatchV1.lib_deps}
[env:Debug-twatch2020_V1]
build_type = debug
build_flags =
${lWatchDebug.build_flags}
${BaseTwatchV1.build_flags}
lib_deps =
${BaseTwatchV1.lib_deps}