-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathplatformio.ini
More file actions
53 lines (50 loc) · 1.54 KB
/
platformio.ini
File metadata and controls
53 lines (50 loc) · 1.54 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
; 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]
default_envs = esp32s2_lolin
data_dir = web/data
description = tinyUPS is the control and management tool for your UPS
[env]
framework = arduino
extra_scripts =
pre:scripts/pre.py
post:scripts/post.py
build_flags =
-D SERIAL_BAUD=115200UL
-D DEBUG_ESP_PORT=Serial
-D SNMP_OID_MAX_LENGTH=64
-D SNMP_BUFFER_SIZE=128
-Wall
-fmax-errors=3
[env:esp32s2_lolin]
platform = https://github.com/pioarduino/platform-espressif32/releases/download/stable/platform-espressif32.zip
board = lolin_s2_mini
board_build.mcu = esp32s2
board_build.f_cpu = 240000000L
board_build.filesystem = fatfs
board_build.flash_mode = dio
board_build.partitions = partitions.csv
upload_speed = 57600
upload_protocol = esptool
monitor_speed = 115200
monitor_filters = esp32_exception_decoder
; targets = upload, monitor
extra_scripts = ${env.extra_scripts}
build_flags =
${env.build_flags}
-D CORE_DEBUG_LEVEL=1
-D CONFIG_ASYNC_TCP_STACK_SIZE=4096
-D CONFIG_ASYNC_TCP_QUEUE_SIZE=32
lib_compat_mode = strict
lib_ldf_mode = chain
lib_deps =
ESP32Async/AsyncTCP
ESP32Async/ESPAsyncWebServer
; platform_packages = platformio/framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git