-
Notifications
You must be signed in to change notification settings - Fork 2
/
platformio.ini
86 lines (73 loc) · 2.34 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
;-----------------------------------------------------------------------
; M5StackCoreS3_CameraWebServer
; Porting of espressif/arduino-esp32 example to M5Stack CoreS3.
; See also https://github.com/espressif/arduino-esp32/tree/master/libraries/ESP32/examples/Camera/CameraWebServer
;-----------------------------------------------------------------------
[env]
platform = [email protected]
framework = arduino
board_build.flash_mode = qio
board_build.f_flash = 80000000L
lib_deps = m5stack/M5Unified
https://github.com/GOB52/gob_GC0308.git @ ^0.1.0
lib_ldf_mode = deep
monitor_speed = 115200
monitor_filters = esp32_exception_decoder, time
upload_speed = 921600
build_flags = -Wall -Wextra -Wreturn-local-addr -Werror=format -Werror=return-local-addr
-DBOARD_HAS_PSRAM -mfix-esp32-psram-cache-issue
; --------------------------------
; Choose build options
[option_release]
build_flags = -DCORE_DEBUG_LEVEL=3
-DLOG_LOCAL_LEVEL=3
-DAPP_LOG_LEVEL=3
[option_log]
build_flags = -DCORE_DEBUG_LEVEL=5
-DLOG_LOCAL_LEVEL=5
-DAPP_LOG_LEVEL=5
[option_debug]
build_flags = -DCORE_DEBUG_LEVEL=5
-DLOG_LOCAL_LEVEL=5
-DAPP_LOG_LEVEL=5
-DDEBUG
;----
[env:release]
board = esp32s3box
board_build.arduino.memory_type = qio_qspi
upload_speed = 1500000
build_type=release
build_flags=${env.build_flags} ${option_release.build_flags}
[env:debug]
board = esp32s3box
board_build.arduino.memory_type = qio_qspi
upload_speed = 1500000
build_type=debug
build_flags=${env.build_flags} ${option_debug.build_flags}
-Wl,-Map,output.map
; Enable face detection/recognition
[env:release_face]
board = esp32s3box
board_build.arduino.memory_type = qio_qspi
upload_speed = 1500000
build_type=release
build_flags=${env.build_flags} ${option_release.build_flags} -DCWS_ENABLE_FACE
board_build.partitions = for_face.csv
[env:debug_face]
board = esp32s3box
board_build.arduino.memory_type = qio_qspi
upload_speed = 1500000
build_type=debug
build_flags=${env.build_flags} ${option_debug.build_flags} -DCWS_ENABLE_FACE
-Wl,-Map,output.map
board_build.partitions = for_face.csv
; Use local gob_GC0308 (unstable)
; Creating a symbolic link to gob_GC0308 in ./lib
[env:debug_unstable_gc0308]
board = esp32s3box
board_build.arduino.memory_type = qio_qspi
upload_speed = 1500000
build_type=debug
build_flags=${env.build_flags} ${option_debug.build_flags}
-Wl,-Map,output.map
lib_deps = m5stack/M5Unified