Hi Gang
Can I get an example of how you’d implement rpiWS281x in a project file?
I’ve got the library installed and the example python scripts in rpiWS281x seem to work, using the following params from strandtest.py in the exampls of rpiWS281x):
LED strip configuration:
LED_COUNT = 26 # Number of LED pixels.
LED_PIN = 18 # GPIO pin connected to the pixels (18 uses PWM!).
#LED_PIN = 10 # GPIO pin connected to the pixels (10 uses SPI /dev/spidev0.0).
LED_FREQ_HZ = 800000 # LED signal frequency in hertz (usually 800khz)
LED_DMA = 10 # DMA channel to use for generating signal (try 10)
LED_BRIGHTNESS = 255 # Set to 0 for darkest and 255 for brightest
LED_INVERT = False # True to invert the signal (when using NPN transistor level shift)
LED_CHANNEL = 0 # set to ‘1’ for GPIOs 13, 19, 41, 45 or 53
``
(I’m using the PiPixel btw)
what I’m missing is how to properly construct the neopixel driver in a project file. I’m assuming I’d need to pass parameters like pin and clock speed.
ERROR - run - When reading file 00-strip.json:
{
“aliases”: {
“bpa”: “BiblioPixelAnimations.strip”
},
“animation”: {
“animations”: [
“@bpa.Alternates”,
“@bpa.BinaryEpochClock.BEClock”,
“@bpa.ColorChase”,
“@bpa.ColorFade”,
“@bpa.ColorPattern”,
“@bpa.ColorWipe”,
“@bpa.FireFlies”,
“@bpa.HalvesRainbow”,
“@bpa.LarsonScanners.LarsonRainbow”,
“@bpa.LarsonScanners.LarsonScanner”,
“@bpa.LinearRainbow”,
“@bpa.PartyMode”,
“@bpa.PixelPingPong”,
“@bpa.RGBClock”,
“@bpa.Rainbows.Rainbow”,
“@bpa.Rainbows.RainbowCycle”,
“@bpa.Searchlights”,
“@bpa.Wave”,
“@bpa.Wave.WaveMove”,
“@bpa.WhiteTwinkle”,
“@bpa.hexclock”
],
“length”: 1,
“run”: {
“fps”: 30,
“seconds”: 23
},
“typename”: “sequence”
},
“driver”: {
“num”: 26,
“typename”: “neopixel”
},
“layout”: “strip”
}
No member specified in neopixel
``