Skip to content

Commit 82206fd

Browse files
authored
Merge pull request #609 from 446564/nan-g2-usb
add nano g2 usb companion
2 parents e47a1df + dc9b4f8 commit 82206fd

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

variants/nano_g2_ultra/platformio.ini

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,27 @@ lib_deps =
5555
adafruit/Adafruit GFX Library @ ^1.12.1
5656
stevemarple/MicroNMEA @ ^2.0.6
5757
end2endzone/NonBlockingRTTTL@^1.3.0
58+
59+
[env:Nano_G2_Ultra_companion_radio_usb]
60+
extends = Nano_G2_Ultra
61+
build_flags =
62+
${Nano_G2_Ultra.build_flags}
63+
-I src/helpers/ui
64+
-D MAX_CONTACTS=100
65+
-D MAX_GROUP_CHANNELS=8
66+
-D OFFLINE_QUEUE_SIZE=256
67+
-D DISPLAY_CLASS=SH1106Display
68+
-D PIN_BUZZER=4
69+
; -D MESH_PACKET_LOGGING=1
70+
; -D MESH_DEBUG=1
71+
build_src_filter = ${Nano_G2_Ultra.build_src_filter}
72+
+<helpers/ui/SH1106Display.cpp>
73+
+<helpers/ui/buzzer.cpp>
74+
+<../examples/companion_radio>
75+
lib_deps =
76+
${Nano_G2_Ultra.lib_deps}
77+
densaugeo/base64 @ ~1.4.0
78+
adafruit/Adafruit SH110X @ ~2.1.13
79+
adafruit/Adafruit GFX Library @ ^1.12.1
80+
stevemarple/MicroNMEA @ ^2.0.6
81+
end2endzone/NonBlockingRTTTL@^1.3.0

0 commit comments

Comments
 (0)