-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathplatformio.ini
74 lines (66 loc) · 2.07 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
; 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 = esp32ota
[common]
hostname = esp32_07
fqdn = ${common.hostname}.local
platform = espressif32
board = esp-wrover-kit
framework = arduino
platform_packages =
#platform_packages = platformio/framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git
board_build.f_cpu = 240000000L
board_build.partitions = min_spiffs.csv
build_flags =
-DCORE_DEBUG_LEVEL=1
-DCONFIG_SPIRAM_CACHE_WORKAROUND
-DHOSTNAME=\"${common.hostname}\"
-DNET_WATCHDOG=\"192.168.1.1\"
-Wall -Werror
-DBOTtoken=Heizung_BOTtoken
# -Wstack-usage=700
# -DBOARD_HAS_PSRAM part of esp32cam extra flags
# -mfix-esp32-psram-cache-issue part of esp32cam extra flags
# -DCONFIG_ARDUHAL_LOG_DEFAULT_LEVEL=5
lib_deps =
# CircularBuffer
1796@^1.3.3
bblanchon/ArduinoJson@^6.17.2
# WebSockets
549@^2.2.1
# ESP32Ping
6842@^1.5
# UniversalTelegramBot
1262@^1.3
[env:esp32ota]
platform = ${common.platform}
board = ${common.board}
framework = ${common.framework}
platform_packages = ${common.platform_packages}
build_flags = ${common.build_flags}
lib_deps = ${common.lib_deps}
board_build.f_cpu = ${common.board_build.f_cpu}
board_build.partitions = ${common.board_build.partitions}
upload_protocol=espota
upload_port=${common.fqdn}
[env:esp32usb]
platform = ${common.platform}
board = ${common.board}
framework = ${common.framework}
platform_packages = ${common.platform_packages}
build_flags = ${common.build_flags}
lib_deps = ${common.lib_deps}
board_build.f_cpu = ${common.board_build.f_cpu}
board_build.partitions = ${common.board_build.partitions}
monitor_speed = 115200
upload_speed = 115200
#upload_speed = 921600
upload_port=/dev/ttyUSB0