Skip to content

Commit 2f86b9e

Browse files
authored
Added basic pio ini config for libray example tester
added basic pio ini config for libray example tester
2 parents 7cd5c6d + 8bd49a8 commit 2f86b9e

File tree

1 file changed

+27
-7
lines changed

1 file changed

+27
-7
lines changed

platformio.ini

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,38 @@
77
;
88
; Please visit documentation for the other options and examples
99
; https://docs.platformio.org/page/projectconf.html
10+
;
11+
; Example tester by @hpsaturn from CanAirIO Sensorlib pio ini schema
1012

11-
[env:M5CoreS3]
12-
platform = espressif32
13-
board = esp32-s3-devkitc-1
13+
[platformio]
14+
src_dir = ./examples/PlatformIO/
15+
lib_dir = ./
16+
17+
[env]
1418
framework = arduino
15-
upload_port = /dev/cu.usbmodem144101
1619
upload_speed = 1500000
1720
monitor_speed = 115200
18-
monitor_port = /dev/cu.usbmodem144101
21+
monitor_filters = time
1922
build_flags =
23+
-DESP32S3
2024
-DBOARD_HAS_PSRAM
2125
-mfix-esp32-psram-cache-issue
22-
-DCORE_DEBUG_LEVEL=3
26+
-DCORE_DEBUG_LEVEL=5
27+
-DARDUINO_USB_CDC_ON_BOOT=1
28+
-DARDUINO_USB_MODE=1
2329
lib_deps =
24-
tinyu-zhao/BMI270_Sensor @ ^0.0.1
30+
m5stack/M5Unified@^0.1.6
31+
32+
[common]
33+
framework = ${env.framework}
34+
upload_speed = ${env.upload_speed}
35+
monitor_speed = ${env.monitor_speed}
36+
build_flags = ${env.build_flags}
37+
lib_deps = ${env.lib_deps}
38+
39+
[env:M5CoreS3]
40+
extends = common
41+
platform = espressif32
42+
board = esp32-s3-devkitc-1
43+
build_src_filter = -<*> +<Camera/>
44+

0 commit comments

Comments
 (0)