Adds app-side support for the ESP32-WROOM-32 Joy-Con bridge over USB serial. The ESP32 pairs with the Joy-Con via Bluetooth Classic (using Bluepad32), parses input reports, and streams an 11-byte wire protocol frame at 60 Hz over the CP2102's USB-CDC serial connection. ControllerManager now auto-detects known USB-serial chips (CP2102, CH340, Espressif native USB) by VID/PID, opens the port at 115200 8N1 via usb-serial-for-android, and parses incoming frames into the same dispatchButton / onAnalogEvent pipeline used by all other controller paths. Frame format: [0xA5 sync] [seq] [btns_lo] [btns_hi] [dpad hat] [lx] [ly] [rx] [ry] [flags] [XOR crc8]. Verified stable for 10+ minutes with zero disconnects on the Samsung Fold 6 — the 8BitDo USB adapter wedged within 2 minutes on the same phone. Full firmware control eliminates the OTG selective-suspend issue that plagued the adapter path.
62 lines
2.9 KiB
TOML
62 lines
2.9 KiB
TOML
[versions]
|
|
agp = "9.0.1"
|
|
kotlin = "2.1.20"
|
|
coreKtx = "1.16.0"
|
|
junit = "4.13.2"
|
|
junitVersion = "1.3.0"
|
|
espressoCore = "3.7.0"
|
|
appcompat = "1.7.1"
|
|
material = "1.13.0"
|
|
composeBom = "2025.04.01"
|
|
activityCompose = "1.10.1"
|
|
navigationCompose = "2.9.0"
|
|
lifecycle = "2.9.0"
|
|
coroutines = "1.10.2"
|
|
windowSizeClass = "1.3.2"
|
|
datastorePrefs = "1.1.4"
|
|
coil = "2.7.0"
|
|
usbSerial = "3.9.0"
|
|
|
|
[libraries]
|
|
androidx-core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "coreKtx" }
|
|
junit = { group = "junit", name = "junit", version.ref = "junit" }
|
|
androidx-junit = { group = "androidx.test.ext", name = "junit", version.ref = "junitVersion" }
|
|
androidx-espresso-core = { group = "androidx.test.espresso", name = "espresso-core", version.ref = "espressoCore" }
|
|
androidx-appcompat = { group = "androidx.appcompat", name = "appcompat", version.ref = "appcompat" }
|
|
material = { group = "com.google.android.material", name = "material", version.ref = "material" }
|
|
|
|
# Compose
|
|
compose-bom = { group = "androidx.compose", name = "compose-bom", version.ref = "composeBom" }
|
|
compose-ui = { group = "androidx.compose.ui", name = "ui" }
|
|
compose-ui-graphics = { group = "androidx.compose.ui", name = "ui-graphics" }
|
|
compose-ui-tooling = { group = "androidx.compose.ui", name = "ui-tooling" }
|
|
compose-ui-tooling-preview = { group = "androidx.compose.ui", name = "ui-tooling-preview" }
|
|
compose-material3 = { group = "androidx.compose.material3", name = "material3" }
|
|
compose-material-icons = { group = "androidx.compose.material", name = "material-icons-extended" }
|
|
activity-compose = { group = "androidx.activity", name = "activity-compose", version.ref = "activityCompose" }
|
|
navigation-compose = { group = "androidx.navigation", name = "navigation-compose", version.ref = "navigationCompose" }
|
|
|
|
# Lifecycle
|
|
lifecycle-runtime-compose = { group = "androidx.lifecycle", name = "lifecycle-runtime-compose", version.ref = "lifecycle" }
|
|
lifecycle-viewmodel-compose = { group = "androidx.lifecycle", name = "lifecycle-viewmodel-compose", version.ref = "lifecycle" }
|
|
|
|
# Window Size
|
|
material3-wsc = { group = "androidx.compose.material3", name = "material3-window-size-class", version.ref = "windowSizeClass" }
|
|
|
|
# Coroutines
|
|
coroutines-android = { group = "org.jetbrains.kotlinx", name = "kotlinx-coroutines-android", version.ref = "coroutines" }
|
|
|
|
# DataStore
|
|
datastore-prefs = { group = "androidx.datastore", name = "datastore-preferences", version.ref = "datastorePrefs" }
|
|
|
|
# Coil (image loading)
|
|
coil-compose = { group = "io.coil-kt", name = "coil-compose", version.ref = "coil" }
|
|
|
|
# USB serial (ESP32 Joy-Con bridge)
|
|
usb-serial = { group = "com.github.mik3y", name = "usb-serial-for-android", version.ref = "usbSerial" }
|
|
|
|
[plugins]
|
|
android-application = { id = "com.android.application", version.ref = "agp" }
|
|
kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
|
|
compose-compiler = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
|