|
| 1 | +[ThinkNode_M9] |
| 2 | +extends = esp32_base |
| 3 | +board = thinknode_m9 |
| 4 | +board_check = true |
| 5 | +board_build.partitions = default_16MB.csv |
| 6 | +upload_protocol = esptool |
| 7 | +build_flags = |
| 8 | + ${esp32_base.build_flags} |
| 9 | + ${sensor_base.build_flags} |
| 10 | + -I variants/thinknode_m9 |
| 11 | + -I src/helpers/esp32 |
| 12 | + -I src/helpers/sensors |
| 13 | + -D THINKNODE_M9 |
| 14 | + -D PIN_BUZZER=9 |
| 15 | + -D PIN_BOARD_SCL=6 |
| 16 | + -D PIN_BOARD_SDA=7 |
| 17 | + -D P_LORA_NSS=39 |
| 18 | + -D P_LORA_RESET=45 |
| 19 | + -D P_LORA_BUSY=41 |
| 20 | + -D P_LORA_SCLK=40 |
| 21 | + -D P_LORA_MISO=38 |
| 22 | + -D P_LORA_MOSI=47 |
| 23 | + -D P_LORA_DIO_1=42 |
| 24 | + -D USE_LR1110 |
| 25 | + -D RF_SWITCH_TABLE |
| 26 | + -D RADIO_CLASS=CustomLR1110 |
| 27 | + -D WRAPPER_CLASS=CustomLR1110Wrapper |
| 28 | + -D LR11X0_DIO_AS_RF_SWITCH=true |
| 29 | + -D LR11X0_DIO3_TCXO_VOLTAGE=3.3 |
| 30 | + -D LORA_TX_POWER=22 |
| 31 | + -D DISPLAY_CLASS=ST7789Display |
| 32 | + -D DISPLAY_FLIP_VERTICALLY=1 |
| 33 | + -D DISPLAY_SCALE_X=2.5f ; 320 / 128 |
| 34 | + -D DISPLAY_SCALE_Y=3.75f ; 240 / 64 |
| 35 | + -D ST7789 |
| 36 | + -D PIN_TFT_VDD_CTL=-1 |
| 37 | + -D PIN_TFT_LEDA_CTL=17 |
| 38 | + -D PIN_TFT_RST=14 |
| 39 | + -D PIN_GPS_RX=3 |
| 40 | + -D PIN_GPS_TX=2 |
| 41 | + -D PIN_GPS_EN=11 |
| 42 | + -D PIN_GPS_EN_ACTIVE=LOW |
| 43 | + -D PIN_GPS_RESET=5 |
| 44 | + -D PIN_GPS_RESET_ACTIVE=HIGH |
| 45 | + -D GPS_BAUD_RATE=115200 |
| 46 | + -D ENV_INCLUDE_GPS=1 |
| 47 | + -D PIN_VBAT_READ=13 |
| 48 | +build_src_filter = ${esp32_base.build_src_filter} |
| 49 | + +<helpers/sensors/EnvironmentSensorManager.cpp> |
| 50 | + +<helpers/ui/ST7789Display.cpp> |
| 51 | + +<helpers/ui/OLEDDisplay.cpp> |
| 52 | + +<helpers/ui/OLEDDisplayFonts.cpp> |
| 53 | + +<helpers/*.cpp> |
| 54 | + +<../variants/thinknode_m9> |
| 55 | +lib_deps = ${esp32_base.lib_deps} |
| 56 | + ${sensor_base.lib_deps} |
| 57 | + adafruit/Adafruit GFX Library @ ^1.12.1 |
| 58 | + |
| 59 | +[env:ThinkNode_M9_repeater_] |
| 60 | +extends = ThinkNode_M9 |
| 61 | +build_flags = |
| 62 | + ${ThinkNode_M9.build_flags} |
| 63 | + -D ADVERT_NAME='"ThinkNode M9 Repeater"' |
| 64 | + -D ADVERT_LAT=0.0 |
| 65 | + -D ADVERT_LON=0.0 |
| 66 | + -D ADMIN_PASSWORD='"password"' |
| 67 | + -D MAX_NEIGHBOURS=50 |
| 68 | + ;-D MESH_PACKET_LOGGING=1 |
| 69 | + ;-D MESH_DEBUG=1 |
| 70 | +build_src_filter = ${ThinkNode_M9.build_src_filter} |
| 71 | + +<../examples/simple_repeater/*.cpp> |
| 72 | +lib_deps = |
| 73 | + ${ThinkNode_M9.lib_deps} |
| 74 | + ${esp32_ota.lib_deps} |
| 75 | + |
| 76 | +[env:ThinkNode_M9_room_server_] |
| 77 | +extends = ThinkNode_M9 |
| 78 | +build_src_filter = ${ThinkNode_M9.build_src_filter} |
| 79 | + +<../examples/simple_room_server> |
| 80 | +build_flags = |
| 81 | + ${ThinkNode_M9.build_flags} |
| 82 | + -D ADVERT_NAME='"ThinkNode M9 Room Server"' |
| 83 | + -D ADVERT_LAT=0.0 |
| 84 | + -D ADVERT_LON=0.0 |
| 85 | + -D ADMIN_PASSWORD='"password"' |
| 86 | + -D ROOM_PASSWORD='"hello"' |
| 87 | +; -D MESH_PACKET_LOGGING=1 |
| 88 | +; -D MESH_DEBUG=1 |
| 89 | +lib_deps = |
| 90 | + ${ThinkNode_M9.lib_deps} |
| 91 | + ${esp32_ota.lib_deps} |
| 92 | + |
| 93 | +[env:ThinkNode_M9_companion_radio_ble_] |
| 94 | +extends = ThinkNode_M9 |
| 95 | +build_flags = |
| 96 | + ${ThinkNode_M9.build_flags} |
| 97 | + -I examples/companion_radio/ui-new |
| 98 | + -D MAX_CONTACTS=350 |
| 99 | + -D MAX_GROUP_CHANNELS=40 |
| 100 | + -D BLE_PIN_CODE=123456 |
| 101 | + -D OFFLINE_QUEUE_SIZE=256 |
| 102 | + ; -D BLE_DEBUG_LOGGING=1 |
| 103 | + ; -D MESH_PACKET_LOGGING=1 |
| 104 | +build_src_filter = ${ThinkNode_M9.build_src_filter} |
| 105 | + +<helpers/esp32/*.cpp> |
| 106 | + +<helpers/ui/buzzer.cpp> |
| 107 | + +<helpers/ui/MomentaryButton.cpp> |
| 108 | + +<../examples/companion_radio/*.cpp> |
| 109 | + +<../examples/companion_radio/ui-new/*.cpp> |
| 110 | +lib_deps = |
| 111 | + ${ThinkNode_M9.lib_deps} |
| 112 | + densaugeo/base64 @ ~1.4.0 |
| 113 | + end2endzone/NonBlockingRTTTL@^1.3.0 |
| 114 | + |
| 115 | +[env:ThinkNode_M9_companion_radio_usb_] |
| 116 | +extends = ThinkNode_M9 |
| 117 | +build_flags = |
| 118 | + ${ThinkNode_M9.build_flags} |
| 119 | + -I examples/companion_radio/ui-new |
| 120 | + -D MAX_CONTACTS=350 |
| 121 | + -D MAX_GROUP_CHANNELS=40 |
| 122 | + -D OFFLINE_QUEUE_SIZE=256 |
| 123 | +build_src_filter = ${ThinkNode_M9.build_src_filter} |
| 124 | + +<helpers/esp32/*.cpp> |
| 125 | + +<helpers/ui/buzzer.cpp> |
| 126 | + +<helpers/ui/MomentaryButton.cpp> |
| 127 | + +<../examples/companion_radio/*.cpp> |
| 128 | + +<../examples/companion_radio/ui-new/*.cpp> |
| 129 | +lib_deps = |
| 130 | + ${ThinkNode_M9.lib_deps} |
| 131 | + densaugeo/base64 @ ~1.4.0 |
| 132 | + end2endzone/NonBlockingRTTTL@^1.3.0 |
| 133 | + |
| 134 | +[env:ThinkNode_M9_companion_radio_wifi_] |
| 135 | +extends = ThinkNode_M9 |
| 136 | +build_flags = |
| 137 | + ${ThinkNode_M9.build_flags} |
| 138 | + -I examples/companion_radio/ui-new |
| 139 | + -D MAX_CONTACTS=350 |
| 140 | + -D MAX_GROUP_CHANNELS=40 |
| 141 | + -D WIFI_DEBUG_LOGGING=1 |
| 142 | + -D WIFI_SSID='"myssid"' |
| 143 | + -D WIFI_PWD='"mypwd"' |
| 144 | + -D OFFLINE_QUEUE_SIZE=256 |
| 145 | + ; -D MESH_PACKET_LOGGING=1 |
| 146 | +build_src_filter = ${ThinkNode_M9.build_src_filter} |
| 147 | + +<helpers/esp32/*.cpp> |
| 148 | + +<helpers/ui/buzzer.cpp> |
| 149 | + +<helpers/ui/MomentaryButton.cpp> |
| 150 | + +<../examples/companion_radio/*.cpp> |
| 151 | + +<../examples/companion_radio/ui-new/*.cpp> |
| 152 | +lib_deps = |
| 153 | + ${ThinkNode_M9.lib_deps} |
| 154 | + densaugeo/base64 @ ~1.4.0 |
| 155 | + end2endzone/NonBlockingRTTTL@^1.3.0 |
| 156 | + |
| 157 | +[env:ThinkNode_M9_kiss_modem] |
| 158 | +extends = ThinkNode_M9 |
| 159 | +build_src_filter = ${ThinkNode_M9.build_src_filter} |
| 160 | + +<../examples/kiss_modem/> |
0 commit comments