webaudio + ws2812 + webusb demo
This is a basic demo of controlling a matrix of ws2812 addressable LEDs via WebUSB.
It doesn't end here, what shows up on the matrix is a very basic audio visualization using WebAudio.
- WS2812 addressable LEDs
- Arduino Leonardo
How to run the demo
demos/console/sketch/sketch.ioin Arduino SDK.
- You'll need to upload the sketch to your board (make sure your board is connected over USB)
- Run a webserver in the root of this repo (hint:
python -m SimpleHTTPServer)
- Head over to
https://localhost:8000/console/index.htmlin Google Chrome and watch things glow.
- Feel free to tweak anything in these steps based on your thirst for adventure.
TIP: You can get the audio input from mic but that's generally not as much fun. Either you can change the audio input code a little to load your audio directly, or use a loopback software to route your audio out to a mic device and use the mic device as a input for WebAudio analyser.