~/talk

Minesweeper, the obvious thing to build with a launchpad and WebMIDI

Talkat JSUnconf 2017 · on Sunday, 2017-03-26· [web-platform, creative-coding]
slides:none on file

Builds an actual 8x8 Minesweeper on a Launchpad mini using the browser WebMIDI API, sending MIDI bytes (note on 144, control change 176) and working around the device’s limited red/green color space. Implements flag mode via a side column, shows adjacent counts with top-row control changes, fits in about 160 lines of copy‑pasteable JavaScript, runs in Chromium (and Android with USB OTG), and the full source lives as pad‑sweeper on GitHub.

AI-written summary · about

  1. 0:00Introduction
  2. 1:05Launchpad Mini device
  3. 2:30MIDI protocol basics
  4. 6:44Launchpad LED control
  5. 10:38Porting Minesweeper challenges
  6. 12:26Setting up WebMIDI in the browser
  7. 16:21Launchpad display init
  8. 18:09Button input handling
  9. 20:58Minesweeper grid display
  10. 23:09Flagging mines and modes
  11. 25:17Adjacent mine counts
  12. 26:46Finalizing implementation
  13. 27:51Live demo and code walkthrough
  14. 28:54Alternative uses
~/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.