~/talk

Multiplatform USB- How to Communicate Seamlessly

Talkat droidcon New York 2023 · 2023-09-14..09-15· [embedded-and-hardware, android]
slides:none on file

Kotlin Multiplatform code sends binary images over USB to a Badger 2040 e‑ink badge, using expect/actual boundaries and an int‑buffer image abstraction so the same dithering and payload logic runs on Android, macOS and Linux. Device discovery uses Android UsbManager and desktop /dev CU or TTY entries with the JSerial library for serial comms. The build flashes 100+ badges at events, gets 160 people contributed code in Berlin, provides a Compose desktop UI and tests, while iOS doesn't work due to USB/host limitations.

AI-written summary · about

  1. 0:00Introduction and setup
  2. 3:10Problem with platform limitations
  3. 4:35Kotlin Multiplatform solution
  4. 7:01Expect/actual mechanics
  5. 9:08Android platform specifics
  6. 12:16Mac and Linux implementations
  7. 15:08Gradle build setup
  8. 17:36Development approach and learning
  9. 20:48Abstracting image processing
  10. 23:18Desktop app development
  11. 25:47UI challenges and workarounds
  12. 27:12iOS limitations and attempts
  13. 28:36Future possibilities and feedback
  14. 30:03Summary and conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.