Browse Source
Merge pull request #1281 from Meshcore-Portugal/jbrazio/promicro_rs232
Add RS232 bridge environment configuration for ProMicro
pull/1299/head
Liam Cottle
5 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
25 additions and
0 deletions
-
variants/promicro/platformio.ini
|
|
@ -53,6 +53,31 @@ build_flags = |
|
|
lib_deps = ${Promicro.lib_deps} |
|
|
lib_deps = ${Promicro.lib_deps} |
|
|
adafruit/RTClib @ ^2.1.3 |
|
|
adafruit/RTClib @ ^2.1.3 |
|
|
|
|
|
|
|
|
|
|
|
[env:ProMicro_repeater_bridge_rs232_serial1] |
|
|
|
|
|
extends = Promicro |
|
|
|
|
|
build_src_filter = ${Promicro.build_src_filter} |
|
|
|
|
|
+<../examples/simple_repeater> |
|
|
|
|
|
+<helpers/ui/SSD1306Display.cpp> |
|
|
|
|
|
+<helpers/ui/MomentaryButton.cpp> |
|
|
|
|
|
+<helpers/bridges/RS232Bridge.cpp> |
|
|
|
|
|
build_flags = |
|
|
|
|
|
${Promicro.build_flags} |
|
|
|
|
|
-D ADVERT_NAME='"RS232 Bridge"' |
|
|
|
|
|
-D ADVERT_LAT=0.0 |
|
|
|
|
|
-D ADVERT_LON=0.0 |
|
|
|
|
|
-D ADMIN_PASSWORD='"password"' |
|
|
|
|
|
-D MAX_NEIGHBOURS=50 |
|
|
|
|
|
-D DISPLAY_CLASS=SSD1306Display |
|
|
|
|
|
-D WITH_RS232_BRIDGE=Serial1 |
|
|
|
|
|
-D WITH_RS232_BRIDGE_RX=PIN_SERIAL1_RX |
|
|
|
|
|
-D WITH_RS232_BRIDGE_TX=PIN_SERIAL1_TX |
|
|
|
|
|
-UENV_INCLUDE_GPS |
|
|
|
|
|
; -D BRIDGE_DEBUG=1 |
|
|
|
|
|
; -D MESH_PACKET_LOGGING=1 |
|
|
|
|
|
; -D MESH_DEBUG=1 |
|
|
|
|
|
lib_deps = ${Promicro.lib_deps} |
|
|
|
|
|
adafruit/RTClib @ ^2.1.3 |
|
|
|
|
|
|
|
|
[env:ProMicro_room_server] |
|
|
[env:ProMicro_room_server] |
|
|
extends = Promicro |
|
|
extends = Promicro |
|
|
build_src_filter = ${Promicro.build_src_filter} |
|
|
build_src_filter = ${Promicro.build_src_filter} |
|
|
|