the protocol for Neopixel is much simpler than what I did with SPI here: Turnkey PRU deskclock application for BBB
I could easily swap out the SPI code for WS2821 and create a new image. But for whom would this be done? I’ve had but one reported successful follow through for the desktop clock.
Is it (still) too complex for those on this board? would anyone bother to download the image to a uSD card and run it?
Is there worry that there is malicious code in the image? At least with the neopixel, no network access would be necessary (NTP necessary for desk clock)… @FredEckert ran it for 47 days before reporting success, perhaps he had a wireshark instance watching it for calls home … (there aren’t any)
I don’t know how to package software for the BBB more easily than to wrap it in an image, but I don’t see others doing it (aside for @RobertCNelson of course) … is this the issue?
regardless, it would be necessary to use a level shifter with these LED devices, they need 5v logic as well as 5v led power… wouldn’t this make a project with Neopixel too complex? At minimum, you’d need a breadboard for the level shifter, and you’d need to know HOW to operate a level shifter.
For the turnkey code I’m thinking about simply assuming a 24 led device (should also work for fewer led), and randomly assigning values to the 72 ‘slots’. This would verify that the device is working properly, assuming that the headers are wired properly, and the level shifter is wired properly.
A more interactive script could easily be provided that would use keystrokes to select led device and color. It would ignore all but ‘rRgGbB0123456789’. Numbers would indicate which led, ‘r’ would decrease red value, ‘R’ would increase red value … etc. This script should be all any aspiring programmer would need to begin modifying to taste… Of course it would be Perl, but ANY language that can produce text would work.
I often think of a cute story where gomer was asked for both cigarette and light, and responded ‘how are you fixed for suction?’
gomer