~/talk

Swift to Hack Hardware

Talkat UIKonf 2019 · 2019-05-26..05-29· [swift, embedded-and-hardware]
slides:none on file

Swift runs on Raspberry Pi to read sensors, identify coins by weight and post deposits to a server. The build uses Swift on Raspberry Pi, a Swift package plus GPIO bindings to bit‑bang a 24‑bit two’s‑complement stream from an HX711 load cell amplifier, and drives an HD44780 LCD for status. Code converts raw weight deltas to coin values, wraps them in a Codable deposit struct, and posts them to a Swift server so mobile clients see live balances.

AI-written summary · about

  1. 0:00Intro
  2. 1:06What we build
  3. 4:06Installing Swift
  4. 9:40Calculate Coin Value
  5. 10:45Load Cell
  6. 12:20Data Sheets
  7. 13:16Raspberry Pi
  8. 14:54C Code
  9. 18:08Overview
  10. 19:38Example
  11. 20:20Integration
  12. 21:20Diversity
~/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.