Minesweeper, the obvious thing to build with a launchpad and WebMIDI
summary
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
chapters (14)
- 0:00Introduction
- 1:05Launchpad Mini device
- 2:30MIDI protocol basics
- 6:44Launchpad LED control
- 10:38Porting Minesweeper challenges
- 12:26Setting up WebMIDI in the browser
- 16:21Launchpad display init
- 18:09Button input handling
- 20:58Minesweeper grid display
- 23:09Flagging mines and modes
- 25:17Adjacent mine counts
- 26:46Finalizing implementation
- 27:51Live demo and code walkthrough
- 28:54Alternative uses
related talks
57mMake More Than Music with Tiny Computers, JavaScript and MIDI
29mMIDI A New Dimension in Controlling Your Browser
39mBuild Fast and Smooth Web Apps from Feature Phone to Desktop
20mLook What You MIDI Me Do!
44mTiny Computers, JavaScript and MIDI
23mLet's talk about MIDI
26mLearning to Read Music with the Web MIDI API
40mBeats in the Browser - Coding Music with JavaScript
