UnicornHAT pulses a beat to SonicPi on the Raspberry Pi

sonicpi_unicorn

I was watching Pimoroni’s Bilge Tank today and Phil Howard mentioned that there was now a way in Ruby to run Neopixels (WS2812, I believe, I could be wrong) and therefore it wouldn’t be a stretch to get it to be able to control the UnicornHAT. I reasoned that, seeing as SonicPi was a Ruby-derived language, that SonicPi should therefore be able to control the UnicornHAT. Within the hour, I was tweeted by Wayne Keenan who had managed to do it using a Python server, sockets and a lot of know-how. Here is the result:

Wayne has put all the code and some instructions up on GitHub – so head over there now to see how he did it.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.