Hi,
I’ve
installed BiblioPixel and succeeded to run/customize a simple test program (using
Thonny on raspi) to control my LPD8806 LED strip. As a next step I intend to
create more sophisticated animations doing remote development on my Desktop PC
running Eclipse and PyDev. For this I copied bibliopixel lib (and some other
libs required) from raspi (server) to Eclipse install path on PC (localhost, in
my case from raspi dir /home/pi/.local/lib/python3.5/site-packages/* into the
directory C:\Users\Thomas.p2\pool\plugins\org.python.pydev.jython_5.9.2.201708151115\Lib\site-packages*)
and updated PATHS_FROM_ECLIPSE_TO_PYTHON in file /usr/local/lib/python2.7/dist-packages/pydevd_file_utils.py
to get my test file synced, as explained in some tutorials on the web.
But when
starting my test program (same code as on raspi) from Eclipse I running into a platform/OS
compatibility issue i.e. /dev/spidev0.0 (SPI I/F on RasPi) can’t be found:
ERROR - interfaces - Error with dev:
/dev/spidev0.0, spi_speed: 1 - Cannot find SPI device.
Please see
https://github.com/maniacallabs/bibliopixel/wiki/SPI-Setup
for details.
Traceback (most recent call last):
File
“C:\Users\Thomas\eclipse-workspace\RemoteSystemsTempFiles<ip_addr>\home\pi\raspiproj\test.py”,
line 36, in
driver = LPD8806(60)
File
“C:\Users\Thomas.p2\pool\plugins\org.python.pydev.jython_5.9.2.201708151115\Lib\site-packages\bibliopixel\drivers\SPI\LPD8806.py”,
line 11, in init
super().__init__(num, gamma=gamma, **kwargs)
File
“C:\Users\Thomas.p2\pool\plugins\org.python.pydev.jython_5.9.2.201708151115\Lib\site-packages\bibliopixel\drivers\SPI\base.py”,
line 20, in init
self._interface = interfaces._SPI_INTERFACES[iface](dev=dev,
spi_speed=spi_speed)
File
“C:\Users\Thomas.p2\pool\plugins\org.python.pydev.jython_5.9.2.201708151115\Lib\site-packages\bibliopixel\drivers\SPI\interfaces.py”,
line 33, in init
self.error(errors.CANT_FIND_ERROR)
File
“C:\Users\Thomas.p2\pool\plugins\org.python.pydev.jython_5.9.2.201708151115\Lib\site-packages\bibliopixel\drivers\SPI\interfaces.py”,
line 24, in error
raise IOError(msg)
OSError: Error with dev: /dev/spidev0.0,
spi_speed: 1 - Cannot find SPI device.
Please see
https://github.com/maniacallabs/bibliopixel/wiki/SPI-Setup
for details.
It looks like I get this error
because at some point there is a check on OS platform and on PC/Eclipse /dev/spidev0.0
can’t be found. If
someone can give me hints on this I would be grateful! It’s so comfortable to
make development on Eclipse IDE.
Thank you
in advance for your assistance!
Kind
regards,
Thomas