I made an LED mask with 11 patterns to demonstrate how to code for a matrix that is not rectangular. It runs on an Arduino Nano and uses FastLED library. If you just want to look at pretty flashing lights, skip to 07:35. Watch right to the end to see the basic sound reactive part - this still needs some work!

GitHub repository for code and schematics: https://github.com/s-marley/LEDMask
FastLED XY example code for rectangular matrix: https://github.com/FastLED/FastLED/blob/master/examples/XYMatrix/XYMatrix.ino
FastLED XY Map Generator: https://macetech.github.io/FastLED-XY-Map-Generator/

 

Learn more / En savoir plus / Mehr erfahren:

 

https://www.scoop.it/t/21st-century-learning-and-teaching/?&tag=LEDs

 

https://www.scoop.it/t/21st-century-learning-and-teaching/?&tag=ARDUINO

 

https://www.scoop.it/topic/21st-century-learning-and-teaching/?&tag=WS2812B