-
Notifications
You must be signed in to change notification settings - Fork 7
/
platformio.ini
147 lines (131 loc) · 4.32 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
; 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 @ ^6.7.0
board = az-delivery-devkit-v4 ; Overridden per board
framework = arduino
build_flags =
-std=gnu++2a
build_unflags =
-std=gnu++11
lib_deps =
https://github.com/OpenShock/flatbuffers
https://github.com/OpenShock/ESPAsyncWebServer
https://github.com/OpenShock/BadWebSockets
custom_openshock.flash_size = 4MB; Can be overridden per board
board_build.filesystem = littlefs
board_build.embed_files = certificates/x509_crt_bundle
extra_scripts =
pre:scripts/install_dependencies.py
pre:scripts/use_openshock_params.py
pre:scripts/embed_env_vars.py
post:scripts/build_frontend.py
; Serial Monitor options
upload_speed = 921600
monitor_speed = 115200
monitor_filters = esp32_exception_decoder
; Static code analysis
check_tool = cppcheck
check_skip_packages = true
check_flags =
cppcheck: --std=c++20 -j 8 --suppress=*:*/.pio/* --suppress=*:*/include/serialization/_fbs/*
; https://docs.platformio.org/en/stable/boards/espressif32/wemos_d1_mini32.html
[env:Wemos-D1-Mini-ESP32]
board = Wemos-D1-Mini-ESP32
custom_openshock.chip = ESP32
build_flags =
-DOPENSHOCK_LED_GPIO=2
-DOPENSHOCK_RF_TX_GPIO=15
; https://docs.platformio.org/en/latest/boards/espressif32/lolin_s2_mini.html
[env:Wemos-Lolin-S2-Mini]
board = Wemos-Lolin-S2-Mini ; override
custom_openshock.chip = ESP32-S2
build_flags =
-DOPENSHOCK_LED_GPIO=15
; https://docs.platformio.org/en/latest/boards/espressif32/lolin_s3.html
[env:Wemos-Lolin-S3]
board = Wemos-Lolin-S3 ; override
custom_openshock.chip = ESP32-S3
custom_openshock.flash_size = 16MB
build_flags =
-DOPENSHOCK_LED_WS2812B=38
; https://docs.platformio.org/en/latest/boards/espressif32/lolin_s3_mini.html
[env:Wemos-Lolin-S3-Mini]
board = lolin_s3_mini ; builtin
custom_openshock.chip = ESP32-S3
custom_openshock.flash_size = 4MB
build_flags =
-DOPENSHOCK_LED_WS2812B=47
-DOPENSHOCK_LED_FLIP_RG_CHANNELS=1
-DARDUINO_USB_CDC_ON_BOOT=1
[env:Pishock-2023]
board = Wemos-D1-Mini-ESP32 ; override
custom_openshock.chip = ESP32
build_flags =
-DOPENSHOCK_LED_GPIO=2
-DOPENSHOCK_RF_TX_GPIO=12
[env:Pishock-Lite-2021]
board = Wemos-D1-Mini-ESP32 ; override
custom_openshock.chip = ESP32
build_flags =
-DOPENSHOCK_LED_GPIO=2
-DOPENSHOCK_RF_TX_GPIO=15
; https://docs.platformio.org/en/latest//boards/espressif32/seeed_xiao_esp32c3.html
[env:Seeed-Xiao-ESP32C3]
board = seeed_xiao_esp32c3 ; builtin
custom_openshock.chip = ESP32-C3
custom_openshock.flash_size = 4MB
; https://docs.platformio.org/en/latest//boards/espressif32/seeed_xiao_esp32s3.html
[env:Seeed-Xiao-ESP32S3]
board = seeed_xiao_esp32s3 ; builtin
custom_openshock.chip = ESP32-S3
custom_openshock.flash_size = 8MB
build_flags =
-DOPENSHOCK_LED_GPIO=21
; https://docs.platformio.org/en/latest//boards/espressif32/dfrobot_firebeetle2_esp32e.html
[env:DFRobot-Firebeetle2-ESP32E]
board = dfrobot_firebeetle2_esp32e ; builtin
custom_openshock.chip = ESP32
custom_openshock.flash_size = 4MB
build_flags =
-DOPENSHOCK_RF_TX_GPIO=13
-DOPENSHOCK_LED_WS2812B=5
-DOPENSHOCK_LED_GPIO=2
; https://github.com/OpenShock/Hardware/tree/main/Core
; 8MB Flash, assume no PSRAM.
; Uses now-blacklisted pins for RF TX and Status LED.
[env:OpenShock-Core-V1]
board = esp32-s3-devkitc-1 ; builtin
custom_openshock.chip = ESP32-S3
custom_openshock.flash_size = 8MB
build_flags =
-DOPENSHOCK_LED_WS2812B=48
-DOPENSHOCK_LED_GPIO=35
-DOPENSHOCK_RF_TX_GPIO=15
-DOPENSHOCK_ESTOP_PIN=13
-DARDUINO_USB_CDC_ON_BOOT=1
; https://github.com/OpenShock/Hardware/tree/main/Core%20v2
; 8MB Flash, assume no PSRAM.
[env:OpenShock-Core-V2]
board = esp32-s3-devkitc-1 ; builtin
custom_openshock.chip = ESP32-S3
custom_openshock.flash_size = 8MB
build_flags =
-DOPENSHOCK_LED_WS2812B=14
-DOPENSHOCK_LED_GPIO=13
-DOPENSHOCK_RF_TX_GPIO=1
-DOPENSHOCK_ESTOP_PIN=38
-DARDUINO_USB_CDC_ON_BOOT=1
; TODO:
; https://docs.platformio.org/en/latest/boards/espressif32/upesy_wroom.html;upesy-esp32-wroom-devkit
[env:fs]
custom_openshock.chip = ESP32
custom_openshock.flash_size = 4MB
; This exists so we don't build individual filesystems per board.