SSD1306 on Raspberry Pi 4

CircuitPython on hardware including Adafruit's boards, and CircuitPython libraries using Blinka on host computers.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
mhm_nab
 
Posts: 8
Joined: Mon Oct 03, 2016 7:25 am

SSD1306 on Raspberry Pi 4

Post by mhm_nab »

Hi,
I want to use the displayio library for OLED display SSD1306. I usually install via pip, but as per this page the library isn't yet available in PyPi:
https://circuitpython.readthedocs.io/pr ... index.html
This library is not available on PyPI yet. Install documentation is included as a standard element. Stay tuned for PyPI availability!
I have downloaded the CircuitPython bundle "adafruit-circuitpython-bundle-7.x-mpy-20210725.zip" and the uncompiled one "adafruit-circuitpython-bundle-py-20210725". I was able to find "adafruit_displayio_ssd1306.mpy" & "adafruit_displayio_ssd1306.py", and I placed them inside my site-packages: "/usr/local/lib/python3.7/dist-packages", but when I run:

Code: Select all

$ python
>> import adafruit_displayio_ssd1306
It is still not able to find it. How can I correctly use the downloaded libraries?

Thanks!

User avatar
mhm_nab
 
Posts: 8
Joined: Mon Oct 03, 2016 7:25 am

Re: SSD1306 on Raspberry Pi 4

Post by mhm_nab »

It seems displayio is not supported on Rasp Pi:
https://learn.adafruit.com/circuitpytho ... x?view=all
For display usage, we suggest using python Pillow library or Pygame, we do not have displayio support
That explains it then.

Locked
Please be positive and constructive with your questions and comments.

Return to “Adafruit CircuitPython”