Hardware development with KMP and Compose Desktop
summary
A working prototype called Matrix8 wires an ADG2188 8x8 switch to a Raspberry Pi and uses Kotlin Multiplatform with the JVM desktop target and Compose Multiplatform for the UI the switch matrix is driven over I2C via the Pi4J I2C provider and updates are sent as compact three byte commands after diffing state to minimize writes Bluetooth Low Energy GATT characteristics provide on device control the prototype switches pedals instantly BLE control and I2C switching work buttons and LED GPIO handling is implemented but button wiring is still in progress, HTTP, Wi‑Fi Direct and MIDI are planned.
AI-written summary · about
chapters (11)
- 0:00Hardware dev with KMP
- 2:55Matrix 8 pedal switcher
- 7:07Platforms and tools
- 10:59Raspberry Pi to switcher
- 15:55I2C with switcher chip
- 18:02Bluetooth for companion app
- 24:11App architecture with KMP
- 25:35GPIO for hardware buttons
- 28:46Future HTTP and Wi-Fi
- 31:14MIDI and sound processing
- 33:27Summary and resources
related talks
36mBridge the physical world: Kotlin/Native on Raspberry Pi
46mPowering Compose Multiplatform Apps with Koog & MCP
40mKotlin & Implications in an IoT project
36mBridge the Physical World: Kotlin/Native on Raspberry Pi
45mThe Adventures of Kotlin And Compose Through the Multiplatform World
58mMultiplatform UI: Compose outside Android
40mBuilding a Modern Kotlin Multiplatform Application with Compose Multiplatform and Koin
24mKotlin and Compose WASM for the UI challenged
