forked from cpainchaud/RFLink32
-
Notifications
You must be signed in to change notification settings - Fork 0
/
platformio.ini
158 lines (140 loc) · 4.18 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
; 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]
src_dir = RFLink
[env]
framework = arduino
monitor_speed = 115200
lib_ldf_mode = deep
[common]
ESPlibs =
PubSubClient
ArduinoJson@~6.18.5
Wire
U8g2
https://github.com/me-no-dev/ESPAsyncWebServer.git#master
https://github.com/cpainchaud/rflink-webui.git#main
jgromes/RadioLib @ ~5.6
;https://github.com/cpainchaud/RadioLib.git#master
https://github.com/boblemaire/asyncHTTPrequest.git#master
ESP32_libs =
Update
ESP8266_libs =
ESP8266WiFi
ESP8266TrueRandom
[ESP32_base]
platform = [email protected]
;platform = espressif32 ; to try Latest espressif git
;platform_packages = ; to try Latest espressif git
; platformio/framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git ; to try Latest espressif git
board = esp32dev
lib_deps =
${common.ESPlibs}
${common.ESP32_libs}
board_build.filesystem = littlefs
debug_tool = esp-prog
debug_init_break = tbreak setup
monitor_filters = esp32_exception_decoder
board_build.partitions = partitions/esp32_4MB_LittleFS-327k.csv
build_src_filter = +<*> -<Plugins>
[ESP8266_base]
platform = [email protected]
board = d1_mini
lib_deps = ${common.ESPlibs}
${common.ESP8266_libs}
monitor_filters = esp8266_exception_decoder
build_src_filter = +<*> -<Plugins>
[env:genericESP32]
extends = ESP32_base
board = esp32dev
;upload_port=COM8
;monitor_port=COM8
upload_speed = 921600
build_flags =
-D RFLINK_WIFI_ENABLED
; -D RFLINK_MQTT_DISABLED
; -D RFLINK_PORTAL_DISABLED
; -D RADIOLIB_DEBUG
; -D RFLINK_SIGNAL_RSSI_DEBUG
; -D DEBUG_RFLINK_CONFIG
; -D RFLINK_OTA_ENABLED
; -D RFLINK_OTA_PASSWORD='"'${sysenv.OTA_SEC}'"'
; -D RFLINK_SERIAL2NET_DEBUG
; -DCORE_DEBUG_LEVEL=5
[env:genericESP32c3]
extends = ESP32_base
board = esp32-c3-devkitm-1
;upload_port=COM8
;monitor_port=COM8
upload_speed = 921600
build_flags =
-D RFLINK_WIFI_ENABLED
; -D RFLINK_MQTT_DISABLED
; -D RFLINK_PORTAL_DISABLED
; -D RADIOLIB_DEBUG
; -D RFLINK_SIGNAL_RSSI_DEBUG
; -D DEBUG_RFLINK_CONFIG
; -D RFLINK_OTA_ENABLED
; -D RFLINK_OTA_PASSWORD='"'${sysenv.OTA_SEC}'"'
; -D RFLINK_SERIAL2NET_DEBUG
; -DCORE_DEBUG_LEVEL=5
[env:heltec_lora32_v2]
extends = env:genericESP32
board = heltec_wifi_lora_32_V2
build_flags =
-D RFLink_default_Radio_HardwareType=HardwareType::HW_SX1278_t
-D RFLINK_WIFI_ENABLED
-D PIN_RF_RX_DATA=34
-D PIN_RF_RX_CS=18
-D PIN_RF_RX_RESET=14
[env:d1_mini]
extends = ESP8266_base
board = d1_mini
upload_speed = 921600
lib_deps = ${common.ESPlibs}
${common.ESP8266_libs}
build_flags =
-D RFLINK_WIFI_ENABLED
-D ARDUINOJSON_USE_LONG_LONG
; -D RFLINK_MQTT_DISABLED
; disable SSL capabilities in PubSubClient to save memory
; -D RFLINK_MQTT_CLIENT_SSL_DISABLED
; -D RFLINK_PORTAL_DISABLED
; -D RADIOLIB_DEBUG
[env:sonoff_bridge] ; special for Sonoff RF Bridge
extends = ESP8266_base
board = esp8285
upload_speed = 921600
lib_deps = ${common.ESPlibs}
${common.ESP8266_libs}
lib_ignore = RadioLib
rtl_433
build_flags =
-D TARGET_BOARD_ESP8285
-D ARDUINOJSON_USE_LONG_LONG
-D FIRMWARE_UPGRADE_VIA_WEBSERVER_DISABLED
-D RFLINK_WIFI_ENABLED
-D RFLINK_NO_RADIOLIB_SUPPORT
; strips out all the radio pin config code and saves memory
-D RFLINK_USE_HARDCODED_RADIO_PINS_ONLY
; -D RFLINK_MQTT_DISABLED
; disable SSL capabilities in PubSubClient to save memory
; -D RFLINK_MQTT_CLIENT_SSL_DISABLED
; -D RFLINK_PORTAL_DISABLED
; -D RADIOLIB_DEBUG
;[env:nodemcuv2]
;platform = espressif8266
;board = nodemcuv2
;upload_speed = 256000
;lib_deps = ${common.ESPlibs}
; ESP8266WiFi
;lib_ignore = ${common.OLEDlibs}
;upload_protocol = espota
;upload_port = 192.168.1.86