forked from zjwhitehead/eppg-controller
-
-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathplatformio.ini
More file actions
113 lines (106 loc) · 3.05 KB
/
platformio.ini
File metadata and controls
113 lines (106 loc) · 3.05 KB
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
; 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
[platformio]
lib_dir = libraries
include_dir = inc
default_envs =
OpenPPG-CESP32S3-CAN-SP140
[extra]
lib_ignore =
Adafruit Circuit Playground
Adafruit seesaw Library
[env:OpenPPG-CESP32S3-CAN-SP140]
platform = espressif32@6.13.0
board = m5stack-stamps3
framework = arduino, espidf
board_build.f_cpu = 240000000L
board_build.flash_mode = qio
board_build.partitions = default_8MB.csv
custom_src_folder = sp140 ; Used by extra_script.py to rewrite PROJECT_SRC_DIR
; If esptool.py complains about missing intelhex, install into the tool package:
; ~/.platformio/penv/bin/python -m pip install intelhex -t ~/.platformio/packages/tool-esptoolpy
extra_scripts =
pre:extra_script.py
merge-esp.py
build_flags =
; -D SCREEN_DEBUG=false
; -D SCREEN_DEBUG_STATIC=false
-D LV_CONF_INCLUDE_SIMPLE
-I inc/sp140/lvgl
-D LV_LVGL_H_INCLUDE_SIMPLE
-D CORE_DEBUG_LEVEL=2
-D CONFIG_ARDUINO_LOOP_STACK_SIZE=8192
-Wno-error=format
-D BLE_PAIR_ON_BOOT
build_type = debug
debug_speed = 12000
debug_tool = esp-builtin
lib_deps =
Wire
SPI
ArduinoJson@7.4.3
Time@1.6.1
adafruit/Adafruit BusIO@1.17.4
adafruit/Adafruit BMP3XX Library@2.1.6
adafruit/Adafruit ST7735 and ST7789 Library@1.11.0
adafruit/Adafruit NeoPixel@1.15.4
adafruit/Adafruit CAN@0.2.3
adafruit/Adafruit MCP2515@0.2.1
https://github.com/rlogiacco/CircularBuffer@1.4.0
https://github.com/openppg/SINE-ESC-CAN#8caa93996b5d000fe10ca5265bd1c472dfdf885b
https://github.com/openppg/ANT-BMS-CAN#fd54852bc6f1c9608e37af9ca7c13ea4135c095b
lvgl/lvgl@^9.5.0
h2zero/NimBLE-Arduino@^2.3.9
lib_ignore =
Adafruit SleepyDog Library
${extra.lib_ignore}
monitor_filters =
esp32_exception_decoder
time
monitor_speed = 115200
; Windows setup for native testing - install required packages:
; winget install MSYS2.MSYS2
; C:\msys64\usr\bin\bash -l -c "pacman -S --noconfirm mingw-w64-ucrt-x86_64-gcc mingw-w64-ucrt-x86_64-cmake mingw-w64-ucrt-x86_64-ninja"
; Add C:\msys64\ucrt64\bin to your PATH environment variable
[env:native-test]
platform = native
test_framework = googletest
build_type = debug
build_flags =
-I inc
-I test/native_stubs
-I .pio/libdeps/native-test/CircularBuffer
-D ARDUINO=1
build_src_filter = -<*>
test_ignore = neopixel*, test_screenshots
lib_deps =
ArduinoJson@7.4.3
rlogiacco/CircularBuffer@^1.4.0
[env:native-screenshot]
platform = native
test_framework = googletest
build_type = debug
build_flags =
-I test/screenshot_stubs
-I inc
-I inc/sp140/lvgl
-D LV_CONF_INCLUDE_SIMPLE
-D LV_LVGL_H_INCLUDE_SIMPLE
-D ARDUINO=1
-D NATIVE_SCREENSHOT_TEST=1
-std=c++17
build_src_filter =
-<*>
+<sp140/lvgl/lvgl_main_screen.cpp>
+<sp140/lvgl/lvgl_updates.cpp>
+<sp140/lvgl/lvgl_alerts.cpp>
test_filter = test_screenshots
lib_deps =
lvgl/lvgl@^9.5.0