bibliopixel _> rpiWS281x

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

``

Steven,

So sorry, but it seems that the wiki page for this driver got clobbered sometime recently… there used to be a bunch more detail. Will fix ASAP. The driver in our system isn’t actually called neopixel that’s just the underlying module it uses. What you need should be this:

    "driver": {
"num": 26,
"typename": "pi_ws281x",
"c_order": "RGB",
"gpio": 18,
"ledDma": 10
}

Honestly, I never change ledDma, but yours was different than our default of 5, so I included that. The rest of the unlisted settings are the same.

Please don’t hesitate to reach out again if you have any other questions :slight_smile:

Cheers,

Adam

···

On Wed, Apr 18, 2018 at 9:20 PM, Steven Nicholson steven@airbagproductions.com wrote:

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

``

You received this message because you are subscribed to the Google Groups “Maniacal Labs Users” group.

To unsubscribe from this group and stop receiving emails from it, send an email to maniacal-labs-users+unsubscribe@googlegroups.com.

To post to this group, send email to maniacal-labs-users@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/maniacal-labs-users/7994cd56-6ec1-401c-a920-0f73e60b7e53%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.