Hello,
i am trying to compile my own libreelec build with this "https://github.com/adafruit/Adafruit_Python_SSD1306" installed in the build.
But I don´t find a how to.
Can some one help me?
I compile on a Mac with ubuntu LTS in virtual box
Hello,
i am trying to compile my own libreelec build with this "https://github.com/adafruit/Adafruit_Python_SSD1306" installed in the build.
But I don´t find a how to.
Can some one help me?
I compile on a Mac with ubuntu LTS in virtual box
Instead of trying to build this in, it would be better to add SSD1306 support to the existing Adafruit libs add-on in our repo.
See LibreELEC.tv/package.mk at master · LibreELEC/LibreELEC.tv · GitHub
inusasha ^
ok, do i have to edit this?
Sorry but I´m a noob in this.
After 6 hours of compiling I get an error so everything is new to me.
You will need to create a buildsystem package based on GitHub - adafruit/Adafruit_SSD1306: SSD1306 oled driver library for 'monochrome' 128x64 and 128x32 OLEDs! to compile the binary. The binary can then be inserted into the image. If you push changes to your github repo we can inspect them and comment.
ok, do i have to edit this?
GitHub - CvH/LibreELEC.tv at 9.0-adafruit
adafruit-libraries: include SSD1306 library · CvH/LibreELEC.tv@c5948f4 · GitHub
you can (hopefully it merges to 8.x too)
wget https://github.com/CvH/LibreELEC.tv/commit/c5948f4114932cf182b0184b026cad6c035884e3.patch | git apply -
at your LE dir to merge this
then
PROJECT=RPi2 ARCH=arm scripts/create_addon adafruit-libraries
no idea if this works, it compiles at least
compiled addon Index of /addons/8.0/adafruit/
tjost: which LE version, you are running? 8.0, 8.2 or 9.0 (devel)
hello I´m trying to compile from master
I too am interested in how to incorporate SSD1306 OLED display as well, mine is in the mail.
you can try with the addon I posted above where I added the SSD1306 driver/script
I get after starting my script this Error in KODI.log
EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.ImportError'>
Error Contents: No module named Adafruit_GPIO.SPI
Traceback (most recent call last):
File "/storage/.kodi/addons/http://script.silentservice.xbmc/LCD.py", line 27, in <module>
import Adafruit_GPIO.SPI as SPI
ImportError: No module named Adafruit_GPIO.SPI
-->End of Python script error report<--
i do need the Adafruit_GPIO.SPI
Adafruit_GPIO.SPI is part of the adafruit-library package.
You have to set the PYTHONPATH to '/storage/.kodi/addons/virtual.rpi-tools/lib:/storage/.kodi/addons/virtual.adafruit-libraries/lib'
before the import lines:
You know what?
IT WORKS!!!!!
I had to implement the Adafruit_SSD1306 forlder from my Link above and change the ADAFRUIT_GPIO with the one from GitHub - adafruit/Adafruit_Python_GPIO: Library to provide a cross-platform GPIO interface on the Raspberry Pi and Beaglebone Black using the RPi.GPIO and Adafruit_BBIO libraries.
And now it works.
I´ll make a Video to show what I did.
Can I use this new virtual.adafruit.library in my Repo?
You had to replace the Adafruit_Python_GPIO from the adafruit-libraries addon?
We use already the "
GitHub - adafruit/Adafruit_Python_GPIO: Library to provide a cross-platform GPIO interface on the Raspberry Pi and Beaglebone Black using the RPi.GPIO and Adafruit_BBIO libraries." in adafriut-addon, only the last commit is missing (deprecate an old function).
but for my python tool it needed some more in the GPIO so I replaced it with the one from the last link
and put the SSD1306 Folder in as well
Which feature you are missing in our adafruit_gpio?
Traceback (most recent call last):
File "/storage/.kodi/addons/http://script.silentservice.xbmc/LCD.py", line 63, in <module>
disp = Adafruit_SSD1306.SSD1306_128_64(rst=RST)
File "/storage/.kodi/addons/virtual.adafruit-libraries/lib/Adafruit_SSD1306/SSD1306.py", line 243, in __init__
gpio, spi, i2c_bus, i2c_address, i2c)
File "/storage/.kodi/addons/virtual.adafruit-libraries/lib/Adafruit_SSD1306/SSD1306.py", line 85, in __init__
self._gpio = GPIO.get_platform_gpio()
File "/storage/.kodi/addons/virtual.adafruit-libraries/lib/Adafruit_GPIO/GPIO.py", line 420, in get_platform_gpio
import Adafruit_BBIO.GPIO
ImportError: No module named Adafruit_BBIO.GPIO
-->End of Python script error report<--
You need GitHub - adafruit/adafruit-beaglebone-io-python: Adafruit's BeagleBone IO Python Library, which is not part of adafruit-library addon.
import Adafruit_BBIO.GPIO
ImportError: No module named Adafruit_BBIO.GPIO
As u maybe read, I have change it and now it worked for me