I’ve been working on trying to get Bibliopixel working for… well, at least 10-12 hours now!
I don’t know what’s causing it, but even the simplest animations seem to have a mad, epileptic flickering randomness.
I’m using an APA102 directly wired to a Raspberry Pi 4 (I don’t know if this has been tested with BP much?) so using the SPI driver.
I’m pretty certain there’s no issue with the APA102 strip, as using another driver I can make it behave as it should.
The code I’m currently using is a pair of yaml files that I borrowed from another thread here. The contents are:
driver: typename: SPI c_order: BGR ledtype: APA102 num: 60 shape: 60
animation: typename: fill.Fill palette: [0,0,0]
I adjusted only slightly from the originals in the other thread, as they are hopefully working. Then started BiblioPixel with:
bp init.yaml + strip.yaml
This results in about a dozen red LEDs lighting up midway down the strip, moving up and down the strip slightly, and fringed by a few other colours. It seems, frankly, a bit random. If I change the palette, the red leds change colour accordingly.
I’ve also tried running one of the core projects - green.yaml from Bibliopixel github (can’t link as I’m a new user).
This results in green LEDs lighting as they should at the beginning of the strip, while about a dozen LEDs in the middle of the strip go a bit loopy, cycling really quickly between a load of colours, a bit like in the strip.yaml script. Nothing happens up at the end of the strip.
As I say, I don’t think there’s any problem with the APA102 strip, as it works perfectly smoothly using tinue’s driver (linked above)
I’ve tried uninstalling and reinstalling Bibliopixel a few times, but to no avail. Are there any other dependencies that might be causing problems? Really tearing my hair out with this!
Huge thanks in advance for any help - I can see that this could be a really, really useful tool that I have a great application for if I could get it working.
Edit: I’ve tried cutting down the ‘shape’ to 6, and that seems to light up the first pixels reliably. I then tried increasing the ‘shape’ length incrementally, and the last pixel starts flickering when I get up to 11, and then gets worse if I increase it further.