2025-03-30 15:52:25 +11:00
|
|
|
[Faketec]
|
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-03-18 23:57:04 +11:00
|
|
|
-D FAKETEC
|
|
|
|
|
-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-03-18 23:57:04 +11:00
|
|
|
[env:Faketec_Repeater]
|
2025-03-30 15:52:25 +11:00
|
|
|
extends = Faketec
|
2025-04-23 10:43:56 +02:00
|
|
|
build_src_filter = ${Faketec.build_src_filter}
|
|
|
|
|
+<../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-03-30 15:52:25 +11:00
|
|
|
${Faketec.build_flags}
|
2025-04-23 10:43:56 +02:00
|
|
|
-D ADVERT_NAME='"Faketec 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-05-07 20:26:15 +12:00
|
|
|
-D MAX_NEIGHBOURS=8
|
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-04-23 10:43:56 +02:00
|
|
|
lib_deps = ${Faketec.lib_deps}
|
2025-03-18 23:57:04 +11:00
|
|
|
adafruit/RTClib @ ^2.1.3
|
2025-05-15 00:21:51 +03:00
|
|
|
|
2025-03-18 23:57:04 +11:00
|
|
|
[env:Faketec_room_server]
|
2025-03-30 15:52:25 +11:00
|
|
|
extends = Faketec
|
2025-04-23 10:43:56 +02:00
|
|
|
build_src_filter = ${Faketec.build_src_filter}
|
|
|
|
|
+<../examples/simple_room_server>
|
|
|
|
|
+<helpers/ui/SSD1306Display.cpp>
|
2025-08-14 14:17:26 +01:00
|
|
|
+<helpers/ui/MomentaryButton.cpp>
|
2025-04-23 10:43:56 +02:00
|
|
|
build_flags = ${Faketec.build_flags}
|
|
|
|
|
-D ADVERT_NAME='"Faketec 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-04-23 10:43:56 +02:00
|
|
|
lib_deps = ${Faketec.lib_deps}
|
2025-03-18 23:57:04 +11:00
|
|
|
adafruit/RTClib @ ^2.1.3
|
|
|
|
|
|
|
|
|
|
[env:Faketec_terminal_chat]
|
2025-03-30 15:52:25 +11:00
|
|
|
extends = Faketec
|
2025-04-23 10:43:56 +02:00
|
|
|
build_flags = ${Faketec.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-04-23 10:43:56 +02:00
|
|
|
build_src_filter = ${Faketec.build_src_filter}
|
|
|
|
|
+<../examples/simple_secure_chat/main.cpp>
|
|
|
|
|
lib_deps = ${Faketec.lib_deps}
|
2025-03-18 23:57:04 +11:00
|
|
|
densaugeo/base64 @ ~1.4.0
|
|
|
|
|
adafruit/RTClib @ ^2.1.3
|
|
|
|
|
|
|
|
|
|
[env:Faketec_companion_radio_usb]
|
2025-03-30 15:52:25 +11:00
|
|
|
extends = Faketec
|
2025-09-09 16:55:46 +10:00
|
|
|
board_build.ldscript = boards/nrf52840_s140_v6_extrafs.ld
|
|
|
|
|
board_upload.maximum_size = 712704
|
2025-04-23 10:43:56 +02:00
|
|
|
build_flags = ${Faketec.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-04-23 10:43:56 +02:00
|
|
|
build_src_filter = ${Faketec.build_src_filter}
|
|
|
|
|
+<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-04-23 10:43:56 +02:00
|
|
|
lib_deps = ${Faketec.lib_deps}
|
2025-03-18 23:57:04 +11:00
|
|
|
adafruit/RTClib @ ^2.1.3
|
|
|
|
|
densaugeo/base64 @ ~1.4.0
|
|
|
|
|
|
|
|
|
|
[env:Faketec_companion_radio_ble]
|
2025-03-30 15:52:25 +11:00
|
|
|
extends = Faketec
|
2025-09-09 16:55:46 +10:00
|
|
|
board_build.ldscript = boards/nrf52840_s140_v6_extrafs.ld
|
|
|
|
|
board_upload.maximum_size = 712704
|
2025-04-23 10:43:56 +02:00
|
|
|
build_flags = ${Faketec.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-04-23 10:43:56 +02:00
|
|
|
build_src_filter = ${Faketec.build_src_filter}
|
|
|
|
|
+<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-04-23 10:43:56 +02:00
|
|
|
lib_deps = ${Faketec.lib_deps}
|
2025-03-18 23:57:04 +11:00
|
|
|
adafruit/RTClib @ ^2.1.3
|
|
|
|
|
densaugeo/base64 @ ~1.4.0
|
|
|
|
|
|
2025-07-24 17:37:35 +02:00
|
|
|
[env:Faketec_sensor]
|
|
|
|
|
extends = Faketec
|
|
|
|
|
build_flags =
|
|
|
|
|
${Faketec.build_flags}
|
|
|
|
|
-D ADVERT_NAME='"Faketec Sensor"'
|
|
|
|
|
-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-07-24 17:37:35 +02:00
|
|
|
build_src_filter = ${Faketec.build_src_filter}
|
|
|
|
|
+<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 =
|
|
|
|
|
${Faketec.lib_deps}
|