Repository navigation
Expand file tree
/
Copy pathplatformio.ini
More file actions
77 lines (71 loc) · 2.52 KB
/
Copy pathplatformio.ini
File metadata and controls
77 lines (71 loc) · 2.52 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
;
; Sensor Net Pro
; Copyright © 2023-2026 Michael Junek
;
; This file is part of SensorNetPro.
;
; SensorNetPro is free software: you can redistribute it and/or modify it under the terms
; of the GNU General Public License as published by the Free Software Foundation, either
; version 3 of the License, or (at your option) any later version.
;
; SensorNetPro is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
; See the GNU General Public License for more details.
;
; You should have received a copy of the GNU General Public License along with SensorNetPro in a file called LICENSE.
; If not, see <https://www.gnu.org/licenses/>.
;
[platformio]
default_envs = esp32poe
; Settings shared by all boards
[env]
; espressif32 8.0.0 is the first PlatformIO platform release with Arduino-ESP32 v3 (3.3.x)
platform = espressif32 @ 8.0.0
framework = arduino
; upload_port = COM7
; monitor_port = COM[7]
; upload_port = /dev/ttyUSB0
; monitor_port = /dev/ttyUSB0
monitor_speed = 115200
lib_ldf_mode = chain
; Two 1.75MB app slots for OTA updates and 448KB of SPIFFS. Changing the table needs one USB upload
; of both the firmware and the filesystem image. See BUILDING.md
board_build.partitions = partitions.csv
; The filesystem image is built from a gzipped copy of data/
extra_scripts = pre:scripts/gzip_data.py
build_flags =
-I$PROJECT_DIR/include/
-D SENSOR_TIME=10
-D FALLBACK_RETRY_TIME=60
-D RUNTIME_REBOOT_HOLD_TIME=5
lib_deps =
0neblock/SNMP_Agent @ 2.1.0
paulstoffregen/OneWire @ 2.3.8
milesburton/DallasTemperature @ 3.11.0
esp32async/AsyncTCP @ 3.5.0
esp32async/ESPAsyncWebServer @ 3.12.1
bblanchon/ArduinoJson @ 7.4.3
; Ethernet PHY settings (ETH_PHY_*, ETH_CLK_MODE) come from each board's variant
; Olimex ESP32-POE: LAN8720 at address 0, PHY power on GPIO12, clock out on GPIO17
[env:esp32poe]
board = esp32-poe
build_flags =
${env.build_flags}
-D ONE_WIRE_BUS=4
-D KEY_RESET=34
-D ERROR_LED=14
-D STATUS_LED=15
-D WIFI_LED=16
; WT32-ETH01: LAN8720 at address 1, PHY power (oscillator enable) on GPIO16, clock in on GPIO0.
; PROVISIONAL pin map until the PCB is designed. The board has no user button: KEY_RESET on
; GPIO39 is input-only and needs an external pull-up and button. GPIO2 and GPIO15 are strapping
; pins, which is fine for LEDs.
[env:wt32-eth01]
board = wt32-eth01
build_flags =
${env.build_flags}
-D ONE_WIRE_BUS=4
-D KEY_RESET=39
-D ERROR_LED=14
-D STATUS_LED=2
-D WIFI_LED=15