I am new to bibliopixel & Raspberry Pi
Using:
Raspberry Pi 3
Python 3.4.2
Installed by:
sudo pip3 install BiblioPixel
Trying to run the following test:
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.APA102)
load the LEDStrip class
from bibliopixel.layout import *
led = Strip(driver)
load channel test animation
from bliopixel.animation import StripChannelTest
anim = StripChannelTest(led)
try:
run the animation
anim.run()
except KeyboardInterrupt:
Ctrl+C will exit the animation and turn the LEDs offs
led.all_off()
led.update()
Here is the output:
Traceback (most recent call last):
File “/home/pi/tomstest1.py”, line 8, in
driver = Serial(num = 10, ledtype = LEDTYPE.APA102)
File “/usr/local/lib/python3.4/dist-packages/bibliopixel/drivers/serial/driver.py”, line 28, in init
self.devices = Devices(hardwareID, baudrate)
File “/usr/local/lib/python3.4/dist-packages/bibliopixel/drivers/serial/devices.py”, line 14, in init
self.serial = import_symbol(‘serial’)
File “/usr/local/lib/python3.4/dist-packages/bibliopixel/project/importer.py”, line 53, in import_symbol
validate_typename(typename)
File “/usr/local/lib/python3.4/dist-packages/bibliopixel/project/importer.py”, line 47, in validate_typename
root_module, version, min_version, install_name))
ValueError:
You have version serial of module ‘2.6’ but you need version 2.7.
Please upgrade at the command line with:
$ pip install pyserial --upgrade