-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
platformio.ini
166 lines (150 loc) · 4.5 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
; 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]
name = Beelance
data_dir = ./fs
default_envs = lilygo_t_a7670g, lilygo_t_sim7080g
[env]
build_type = release
; build_type = debug
framework = arduino
platform = https://github.com/pioarduino/platform-espressif32/releases/download/53.03.10/platform-espressif32.zip
monitor_filters = esp32_exception_decoder, log2file
monitor_speed = 115200
upload_protocol = esptool
; upload_protocol = espota
; upload_port = 192.168.4.1
extra_scripts =
pre:tools/data.py
pre:tools/cacerts.py
pre:tools/version.py
post:tools/factory.py
custom_cacert_url = https://curl.se/ca/cacert.pem
; custom_cacert_url = https://raw.githubusercontent.com/adafruit/certificates/main/data/roots.pem
board_build.partitions = tools/partitions-4MB.csv
board_build.app_partition_name = app
board_build.filesystem = littlefs
board_build.embed_files =
.pio/data/cacerts.bin
.pio/data/logo.jpeg.gz
.pio/data/config.html.gz
lib_compat_mode = strict
lib_ldf_mode = chain
lib_deps =
https://github.com/mathieucarbou/arduino-libraries-ArduinoHttpClient#dev
bblanchon/ArduinoJson @ 7.2.1
mathieucarbou/AsyncTCP @ 3.3.1
mathieucarbou/ESPAsyncWebServer @ 3.4.5
mathieucarbou/MycilaConfig @ 7.0.3
mathieucarbou/MycilaDS18 @ 4.1.2
mathieucarbou/MycilaESPConnect @ 7.0.0
mathieucarbou/MycilaLogger @ 3.2.1
mathieucarbou/MycilaSystem @ 4.0.0
mathieucarbou/MycilaTaskManager @ 3.1.5
mathieucarbou/MycilaTaskMonitor @ 3.0.2
mathieucarbou/MycilaUtilities @ 3.1.3
mathieucarbou/MycilaWebSerial @ 7.0.1
mathieucarbou/StreamDebugger @ 2.1.2
https://github.com/mathieucarbou/lewisxhe-TinyGSM#dev
; ayushsharma82/ESP-DASH @ 4.0.8
https://github.com/mathieucarbou/ayushsharma82-ESP-DASH#dev
robtillaart/HX711 @ 0.5.2
build_flags =
; Stack sizes
-D ARDUINO_LOOP_STACK_SIZE=4096
; AsyncTCP
-D CONFIG_ASYNC_TCP_MAX_ACK_TIME=5000
-D CONFIG_ASYNC_TCP_PRIORITY=10
-D CONFIG_ASYNC_TCP_QUEUE_SIZE=64
-D CONFIG_ASYNC_TCP_RUNNING_CORE=1
-D CONFIG_ASYNC_TCP_STACK_SIZE=5120
; ESPAsyncWebServer
-D WS_MAX_QUEUED_MESSAGES=64
; ESP-DASH with STL string
-D DASH_USE_STL_STRING=1
; Mycila
-D MYCILA_JSON_SUPPORT
-D MYCILA_LOGGER_SUPPORT
; WebSerial
-D WSL_HIGH_PERF
; Flag to disable mDNS which takes a lot of memory
; 25.6 KB …espressif__mdns/mdns.c
-D ESPCONNECT_NO_MDNS
; App
-D APP_MODEL_OSS
; C++
-Wall -Wextra
-std=c++17
-std=gnu++17
; https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html
; -O0
; -O1
; -O2
-O3
; -Og
; -Os
; -D CONFIG_ARDUHAL_LOG_COLORS
-D CORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_INFO
build_unflags =
-std=gnu++11
; --------------------------------------------------------------------
; ENVIRONMENTs
; --------------------------------------------------------------------
; lilygo_t_sim7080g
; https://github.com/Xinyuan-LilyGO/LilyGo-T-SIM7080G
[lilygo_t_sim7080g]
build_flags =
-D MYCILA_MODEM_PWR_PIN=41
-D MYCILA_MODEM_RX_PIN=4
-D MYCILA_MODEM_TX_PIN=5
-D MYCILA_PMU_I2C_SCL=7
-D MYCILA_PMU_I2C_SDA=15
-D TINY_GSM_MODEM_SIM7080
-D TINY_GSM_RX_BUFFER=1024
-D XPOWERS_CHIP_AXP2101
lib_deps =
lewisxhe/XPowersLib @ 0.2.6
[env:lilygo_t_sim7080g]
board = esp32s3box
upload_speed = 921600
custom_safeboot_url = https://github.com/mathieucarbou/MycilaSafeBoot/releases/download/v1.0.4/safeboot-esp32s3box.bin
build_flags =
${env.build_flags}
${lilygo_t_sim7080g.build_flags}
lib_deps =
${env.lib_deps}
${lilygo_t_sim7080g.lib_deps}
; lilygo_t_a7670g
; https://www.lilygo.cc/products/t-sim-a7670e?variant=43043706077365
[lilygo_t_a7670g]
build_flags =
-D BEELANCE_TEMPERATURE_PIN=15
-D MYCILA_GPS_RX_PIN=22
-D MYCILA_GPS_TX_PIN=21
-D MYCILA_MODEM_PWR_PIN=4
-D MYCILA_MODEM_RST_PIN=5
-D MYCILA_MODEM_RX_PIN=27
-D MYCILA_MODEM_TX_PIN=26
-D MYCILA_BOARD_LED_PIN=12
-D MYCILA_PMU_BATTERY_ADC_PIN=35
-D TINY_GSM_MODEM_A7670
-D TINY_GSM_RX_BUFFER=1024
lib_deps =
mikalhart/TinyGPSPlus @ 1.0.3
[env:lilygo_t_a7670g]
board = esp32dev
upload_speed = 460800
custom_safeboot_url = https://github.com/mathieucarbou/MycilaSafeBoot/releases/download/v1.0.4/safeboot-esp32dev.bin
build_flags =
${env.build_flags}
${lilygo_t_a7670g.build_flags}
lib_deps =
${env.lib_deps}
${lilygo_t_a7670g.lib_deps}