mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-09-14 15:16:40 +00:00
Add CardKB support for ProMicro via shared I2C bus
This commit is contained in:
@@ -176,4 +176,43 @@ lib_deps =
|
||||
[env:ProMicro_kiss_modem]
|
||||
extends = Promicro
|
||||
build_src_filter = ${Promicro.build_src_filter}
|
||||
+<../examples/kiss_modem/>
|
||||
+<../examples/kiss_modem/>
|
||||
; ============================================================
|
||||
; Solo build (UI completa on-device) com CardKB no barramento
|
||||
; I2C ja usado pelo OLED (SDA=D8, SCL=D7 -- confirmado contra o
|
||||
; esquematico oficial da fakeTec V5 rev.B). Requer o patch
|
||||
; CARDKB_USE_PRIMARY_WIRE em UITask.h/.cpp e SettingsScreen.h.
|
||||
; ============================================================
|
||||
[env:ProMicro_companion_solo_dual]
|
||||
extends = Promicro
|
||||
board_build.ldscript = boards/nrf52840_s140_v6_extrafs.ld
|
||||
board_upload.maximum_size = 712704
|
||||
; -Ofast (default do core) infla o flash num build solo feature-completo;
|
||||
; -Os cabe com folga.
|
||||
build_unflags = -Ofast
|
||||
build_flags = ${Promicro.build_flags}
|
||||
-I examples/companion_radio/ui-new
|
||||
-D MAX_CONTACTS=350
|
||||
-D MAX_GROUP_CHANNELS=40
|
||||
-D BLE_PIN_CODE=123456
|
||||
-D DUAL_SERIAL=1
|
||||
-D OFFLINE_QUEUE_SIZE=256
|
||||
-D DISPLAY_CLASS=SSD1306Display
|
||||
-D FIRMWARE_SOLO_BUILD=1
|
||||
-D UI_SENSORS_PAGE=1
|
||||
-D ENABLE_SCREENSHOT
|
||||
-Os
|
||||
; CardKB compartilhando o barramento do OLED/RTC (D8/D7) --
|
||||
; NAO definir ENV_PIN_SDA/SCL aqui, colidiria com o LoRa (D13/D14).
|
||||
-D CARDKB_USE_PRIMARY_WIRE=1
|
||||
; -D MESH_PACKET_LOGGING=1
|
||||
; -D MESH_DEBUG=1
|
||||
build_src_filter = ${Promicro.build_src_filter}
|
||||
+<helpers/ui/SSD1306Display.cpp>
|
||||
+<helpers/ui/MomentaryButton.cpp>
|
||||
+<helpers/nrf52/SerialBLEInterface.cpp>
|
||||
+<../examples/companion_radio/*.cpp>
|
||||
+<../examples/companion_radio/ui-new/*.cpp>
|
||||
lib_deps = ${Promicro.lib_deps}
|
||||
adafruit/RTClib @ ^2.1.3
|
||||
densaugeo/base64 @ ~1.4.0
|
||||
|
||||
Reference in New Issue
Block a user