2025-11-21 12:48:33 +11:00
|
|
|
[Promicro]
|
2025-06-29 00:17:46 +02:00
|
|
|
extends = nrf52_base
|
2025-03-18 23:57:04 +11:00
|
|
|
board = promicro_nrf52840
|
2025-06-29 00:17:46 +02:00
|
|
|
build_flags = ${nrf52_base.build_flags}
|
2025-03-21 21:53:53 +11:00
|
|
|
-I variants/promicro
|
2025-11-21 12:48:33 +11:00
|
|
|
-D PROMICRO
|
2026-03-16 09:34:12 +00:00
|
|
|
-D USE_SX1262
|
2025-03-18 23:57:04 +11:00
|
|
|
-D RADIO_CLASS=CustomSX1262
|
|
|
|
|
-D WRAPPER_CLASS=CustomSX1262Wrapper
|
|
|
|
|
-D LORA_TX_POWER=22
|
2025-05-12 10:19:33 +02:00
|
|
|
-D SX126X_CURRENT_LIMIT=140
|
2025-03-18 23:57:04 +11:00
|
|
|
-D SX126X_RX_BOOSTED_GAIN=1
|
2025-03-20 09:27:11 +11:00
|
|
|
-D PIN_BOARD_SCL=7
|
|
|
|
|
-D PIN_BOARD_SDA=8
|
|
|
|
|
-D PIN_OLED_RESET=-1
|
|
|
|
|
-D PIN_USER_BTN=6
|
2025-05-22 15:36:20 +10:00
|
|
|
-D PIN_GPS_RX=3
|
|
|
|
|
-D PIN_GPS_TX=4
|
|
|
|
|
-D PIN_GPS_EN=5
|
2025-05-23 17:08:23 +10:00
|
|
|
-D ENV_INCLUDE_GPS=1
|
|
|
|
|
-D ENV_INCLUDE_AHTX0=1
|
|
|
|
|
-D ENV_INCLUDE_BME280=1
|
2025-06-29 00:17:46 +02:00
|
|
|
-D ENV_INCLUDE_BMP280=1
|
2025-05-23 17:08:23 +10:00
|
|
|
-D ENV_INCLUDE_INA3221=1
|
|
|
|
|
-D ENV_INCLUDE_INA219=1
|
2025-06-29 00:17:46 +02:00
|
|
|
build_src_filter = ${nrf52_base.build_src_filter}
|
|
|
|
|
+<helpers/sensors>
|
2025-03-21 21:53:53 +11:00
|
|
|
+<../variants/promicro>
|
2025-06-29 00:17:46 +02:00
|
|
|
lib_deps= ${nrf52_base.lib_deps}
|
2025-03-20 09:27:11 +11:00
|
|
|
adafruit/Adafruit SSD1306 @ ^2.5.13
|
2025-05-22 00:19:00 +03:00
|
|
|
adafruit/Adafruit INA3221 Library @ ^1.0.1
|
|
|
|
|
adafruit/Adafruit INA219 @ ^1.2.3
|
|
|
|
|
adafruit/Adafruit AHTX0 @ ^2.0.5
|
2025-06-29 00:17:46 +02:00
|
|
|
adafruit/Adafruit BME280 Library @ ^2.3.0
|
|
|
|
|
adafruit/Adafruit BMP280 Library@^2.6.8
|
2025-05-22 15:36:20 +10:00
|
|
|
stevemarple/MicroNMEA @ ^2.0.6
|
2025-06-29 00:17:46 +02:00
|
|
|
|
2025-11-21 12:48:33 +11:00
|
|
|
[env:ProMicro_repeater]
|
|
|
|
|
extends = Promicro
|
|
|
|
|
build_src_filter = ${Promicro.build_src_filter}
|
2025-04-23 10:43:56 +02:00
|
|
|
+<../examples/simple_repeater>
|
|
|
|
|
+<helpers/ui/SSD1306Display.cpp>
|
2025-08-14 14:17:26 +01:00
|
|
|
+<helpers/ui/MomentaryButton.cpp>
|
2025-03-18 23:57:04 +11:00
|
|
|
build_flags =
|
2025-11-21 12:48:33 +11:00
|
|
|
${Promicro.build_flags}
|
2025-11-21 17:57:49 +11:00
|
|
|
-D ADVERT_NAME='"ProMicro Repeater"'
|
2025-04-03 14:59:20 +02:00
|
|
|
-D ADVERT_LAT=0.0
|
|
|
|
|
-D ADVERT_LON=0.0
|
2025-04-23 10:43:56 +02:00
|
|
|
-D ADMIN_PASSWORD='"password"'
|
2025-09-28 16:11:58 +13:00
|
|
|
-D MAX_NEIGHBOURS=50
|
2025-05-19 14:16:55 +10:00
|
|
|
-D DISPLAY_CLASS=SSD1306Display
|
2025-03-18 23:57:04 +11:00
|
|
|
; -D MESH_PACKET_LOGGING=1
|
|
|
|
|
; -D MESH_DEBUG=1
|
2025-11-21 12:48:33 +11:00
|
|
|
lib_deps = ${Promicro.lib_deps}
|
2025-03-18 23:57:04 +11:00
|
|
|
adafruit/RTClib @ ^2.1.3
|
2025-05-15 00:21:51 +03:00
|
|
|
|
2025-12-28 20:04:57 +00:00
|
|
|
[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
|
|
|
|
|
|
2025-11-21 12:48:33 +11:00
|
|
|
[env:ProMicro_room_server]
|
|
|
|
|
extends = Promicro
|
|
|
|
|
build_src_filter = ${Promicro.build_src_filter}
|
2025-04-23 10:43:56 +02:00
|
|
|
+<../examples/simple_room_server>
|
|
|
|
|
+<helpers/ui/SSD1306Display.cpp>
|
2025-08-14 14:17:26 +01:00
|
|
|
+<helpers/ui/MomentaryButton.cpp>
|
2025-11-21 12:48:33 +11:00
|
|
|
build_flags = ${Promicro.build_flags}
|
2025-11-21 17:57:49 +11:00
|
|
|
-D ADVERT_NAME='"ProMicro Room"'
|
2025-04-03 14:59:20 +02:00
|
|
|
-D ADVERT_LAT=0.0
|
|
|
|
|
-D ADVERT_LON=0.0
|
2025-04-23 10:43:56 +02:00
|
|
|
-D ADMIN_PASSWORD='"password"'
|
|
|
|
|
-D ROOM_PASSWORD='"hello"'
|
2025-05-19 14:16:55 +10:00
|
|
|
-D DISPLAY_CLASS=SSD1306Display
|
2025-03-18 23:57:04 +11:00
|
|
|
; -D MESH_PACKET_LOGGING=1
|
|
|
|
|
; -D MESH_DEBUG=1
|
2025-11-21 12:48:33 +11:00
|
|
|
lib_deps = ${Promicro.lib_deps}
|
2025-03-18 23:57:04 +11:00
|
|
|
adafruit/RTClib @ ^2.1.3
|
|
|
|
|
|
2025-11-21 12:48:33 +11:00
|
|
|
[env:ProMicro_terminal_chat]
|
|
|
|
|
extends = Promicro
|
|
|
|
|
build_flags = ${Promicro.build_flags}
|
2025-03-18 23:57:04 +11:00
|
|
|
-D MAX_CONTACTS=100
|
|
|
|
|
-D MAX_GROUP_CHANNELS=1
|
|
|
|
|
; -D MESH_PACKET_LOGGING=1
|
|
|
|
|
; -D MESH_DEBUG=1
|
2025-11-21 12:48:33 +11:00
|
|
|
build_src_filter = ${Promicro.build_src_filter}
|
2025-04-23 10:43:56 +02:00
|
|
|
+<../examples/simple_secure_chat/main.cpp>
|
2025-11-21 12:48:33 +11:00
|
|
|
lib_deps = ${Promicro.lib_deps}
|
2025-03-18 23:57:04 +11:00
|
|
|
densaugeo/base64 @ ~1.4.0
|
|
|
|
|
adafruit/RTClib @ ^2.1.3
|
|
|
|
|
|
2025-11-21 12:48:33 +11:00
|
|
|
[env:ProMicro_companion_radio_usb]
|
|
|
|
|
extends = Promicro
|
2025-09-09 16:55:46 +10:00
|
|
|
board_build.ldscript = boards/nrf52840_s140_v6_extrafs.ld
|
|
|
|
|
board_upload.maximum_size = 712704
|
2025-11-21 12:48:33 +11:00
|
|
|
build_flags = ${Promicro.build_flags}
|
2025-08-16 21:09:35 +10:00
|
|
|
-I examples/companion_radio/ui-new
|
2025-08-25 12:41:59 +10:00
|
|
|
-D MAX_CONTACTS=350
|
|
|
|
|
-D MAX_GROUP_CHANNELS=40
|
2025-05-19 14:16:55 +10:00
|
|
|
-D DISPLAY_CLASS=SSD1306Display
|
2025-03-18 23:57:04 +11:00
|
|
|
; NOTE: DO NOT ENABLE --> -D MESH_PACKET_LOGGING=1
|
|
|
|
|
; NOTE: DO NOT ENABLE --> -D MESH_DEBUG=1
|
2025-11-21 12:48:33 +11:00
|
|
|
build_src_filter = ${Promicro.build_src_filter}
|
2025-04-23 10:43:56 +02:00
|
|
|
+<helpers/ui/SSD1306Display.cpp>
|
2025-08-14 14:17:26 +01:00
|
|
|
+<helpers/ui/MomentaryButton.cpp>
|
2025-08-16 21:09:35 +10:00
|
|
|
+<../examples/companion_radio/*.cpp>
|
|
|
|
|
+<../examples/companion_radio/ui-new/*.cpp>
|
2025-11-21 12:48:33 +11:00
|
|
|
lib_deps = ${Promicro.lib_deps}
|
2025-03-18 23:57:04 +11:00
|
|
|
adafruit/RTClib @ ^2.1.3
|
|
|
|
|
densaugeo/base64 @ ~1.4.0
|
|
|
|
|
|
2025-11-21 12:48:33 +11:00
|
|
|
[env:ProMicro_companion_radio_ble]
|
|
|
|
|
extends = Promicro
|
2025-09-09 16:55:46 +10:00
|
|
|
board_build.ldscript = boards/nrf52840_s140_v6_extrafs.ld
|
|
|
|
|
board_upload.maximum_size = 712704
|
2025-11-21 12:48:33 +11:00
|
|
|
build_flags = ${Promicro.build_flags}
|
2025-08-16 21:09:35 +10:00
|
|
|
-I examples/companion_radio/ui-new
|
2025-08-25 12:41:59 +10:00
|
|
|
-D MAX_CONTACTS=350
|
|
|
|
|
-D MAX_GROUP_CHANNELS=40
|
2025-03-20 09:46:40 +11:00
|
|
|
-D BLE_PIN_CODE=123456
|
2025-03-18 23:57:04 +11:00
|
|
|
-D BLE_DEBUG_LOGGING=1
|
2025-05-14 23:02:49 +12:00
|
|
|
-D OFFLINE_QUEUE_SIZE=256
|
2025-05-19 14:16:55 +10:00
|
|
|
-D DISPLAY_CLASS=SSD1306Display
|
2025-05-05 22:48:21 +02:00
|
|
|
; -D MESH_PACKET_LOGGING=1
|
2025-05-23 17:08:23 +10:00
|
|
|
-D MESH_DEBUG=1
|
2025-11-21 12:48:33 +11:00
|
|
|
build_src_filter = ${Promicro.build_src_filter}
|
2025-04-23 10:43:56 +02:00
|
|
|
+<helpers/nrf52/SerialBLEInterface.cpp>
|
|
|
|
|
+<helpers/ui/SSD1306Display.cpp>
|
2025-08-14 14:17:26 +01:00
|
|
|
+<helpers/ui/MomentaryButton.cpp>
|
2025-08-16 21:09:35 +10:00
|
|
|
+<../examples/companion_radio/*.cpp>
|
|
|
|
|
+<../examples/companion_radio/ui-new/*.cpp>
|
2025-11-21 12:48:33 +11:00
|
|
|
lib_deps = ${Promicro.lib_deps}
|
2025-03-18 23:57:04 +11:00
|
|
|
adafruit/RTClib @ ^2.1.3
|
|
|
|
|
densaugeo/base64 @ ~1.4.0
|
|
|
|
|
|
2025-11-21 12:48:33 +11:00
|
|
|
[env:ProMicro_sensor]
|
|
|
|
|
extends = Promicro
|
2025-07-24 17:37:35 +02:00
|
|
|
build_flags =
|
2025-11-21 12:48:33 +11:00
|
|
|
${Promicro.build_flags}
|
2025-11-21 17:57:49 +11:00
|
|
|
-D ADVERT_NAME='"ProMicro Sensor"'
|
2025-07-24 17:37:35 +02:00
|
|
|
-D ADVERT_LAT=0.0
|
|
|
|
|
-D ADVERT_LON=0.0
|
2025-04-23 10:43:56 +02:00
|
|
|
-D ADMIN_PASSWORD='"password"'
|
2025-07-24 17:37:35 +02:00
|
|
|
-D DISPLAY_CLASS=SSD1306Display
|
2025-03-18 23:57:04 +11:00
|
|
|
; -D MESH_PACKET_LOGGING=1
|
|
|
|
|
; -D MESH_DEBUG=1
|
2025-11-21 12:48:33 +11:00
|
|
|
build_src_filter = ${Promicro.build_src_filter}
|
2025-07-24 17:37:35 +02:00
|
|
|
+<helpers/ui/SSD1306Display.cpp>
|
2025-08-14 14:17:26 +01:00
|
|
|
+<helpers/ui/MomentaryButton.cpp>
|
2025-07-24 17:37:35 +02:00
|
|
|
+<../examples/simple_sensor>
|
|
|
|
|
lib_deps =
|
2025-11-21 12:48:33 +11:00
|
|
|
${Promicro.lib_deps}
|