Initial setup

Trying to initialize AllPixelMini using WS2812B. In initial test showed that RGB order needs adjustment. Used the following code:

import bibliopixel

causes frame timing information to be output

bibliopixel.log.setLogLevel(bibliopixel.log.DEBUG)

Load driver for the AllPixel

from bibliopixel.drivers.serial import *

set number of pixels & LED type here

driver = Serial(num = 10, ledtype = LEDTYPE.WS2812B, c_order = ChannelOrder.GRB)

Get the following error message:

Traceback (most recent call last):
File “.\biblioInitialTest.py”, line 8, in
driver = Serial(num = 10, ledtype = LEDTYPE.WS2812B, c_order = ChannelOrder.GRB)
NameError: name ‘ChannelOrder’ is not defined

You need to add from bibliopixel.drivers import ChannelOrder
Though, that’s also sort of the old way of doing things. Instead you can just do:

driver = Serial(num = 10, ledtype = "WS2812B", c_order = "GRB")

Then you don’t ever need to worry about importing those types.

I do, however, highly recommend using our Projects feature: https://github.com/ManiacalLabs/BiblioPixel/wiki/Projects
Then you don’t ever have to worry about imports at all. Everything is automatic.

···

On Sun, Nov 19, 2017 at 12:42 PM, Harold Breeden hdb4720@gmail.com wrote:

Trying to initialize AllPixelMini using WS2812B. In initial test showed that RGB order needs adjustment. Used the following code:

import bibliopixel

causes frame timing information to be output

bibliopixel.log.setLogLevel(bibliopixel.log.DEBUG)

Load driver for the AllPixel

from bibliopixel.drivers.serial import *

set number of pixels & LED type here

driver = Serial(num = 10, ledtype = LEDTYPE.WS2812B, c_order = ChannelOrder.GRB)

Get the following error message:

Traceback (most recent call last):
File “.\biblioInitialTest.py”, line 8, in
driver = Serial(num = 10, ledtype = LEDTYPE.WS2812B, c_order = ChannelOrder.GRB)
NameError: name ‘ChannelOrder’ is not defined

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/8ed17491-06fb-4f51-8b7a-8dfa99b1c3d0%40googlegroups.com.

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

No problem. We’re here if you need anything else :slight_smile:

···

On Sun, Nov 19, 2017 at 1:15 PM, Harold Breeden hdb4720@gmail.com wrote:

Thanks for the quick and informative response. I am sure I will run into more questions, but this gets me back on the road …

On Sunday, November 19, 2017 at 11:42:08 AM UTC-6, Harold Breeden wrote:

Trying to initialize AllPixelMini using WS2812B. In initial test showed that RGB order needs adjustment. Used the following code:

import bibliopixel

causes frame timing information to be output

bibliopixel.log.setLogLevel(bibliopixel.log.DEBUG)

Load driver for the AllPixel

from bibliopixel.drivers.serial import *

set number of pixels & LED type here

driver = Serial(num = 10, ledtype = LEDTYPE.WS2812B, c_order = ChannelOrder.GRB)

Get the following error message:

Traceback (most recent call last):
File “.\biblioInitialTest.py”, line 8, in
driver = Serial(num = 10, ledtype = LEDTYPE.WS2812B, c_order = ChannelOrder.GRB)
NameError: name ‘ChannelOrder’ is not defined

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/cb822a15-25ac-4db3-b6dc-c71f4d789602%40googlegroups.com.

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

Thanks for the quick and informative response. I am sure I will run into additional questions along the way, but this gets my LED project back on the road.

···

On Sunday, November 19, 2017 at 11:42:08 AM UTC-6, Harold Breeden wrote:

Trying to initialize AllPixelMini using WS2812B. In initial test showed that RGB order needs adjustment. Used the following code:

import bibliopixel

causes frame timing information to be output

bibliopixel.log.setLogLevel(bibliopixel.log.DEBUG)

Load driver for the AllPixel

from bibliopixel.drivers.serial import *

set number of pixels & LED type here

driver = Serial(num = 10, ledtype = LEDTYPE.WS2812B, c_order = ChannelOrder.GRB)

Get the following error message:

Traceback (most recent call last):
File “.\biblioInitialTest.py”, line 8, in
driver = Serial(num = 10, ledtype = LEDTYPE.WS2812B, c_order = ChannelOrder.GRB)
NameError: name ‘ChannelOrder’ is not defined