Skip to content

The driver for the ssd1327 is not on pypi #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
tjim opened this issue Nov 28, 2020 · 5 comments
Closed

The driver for the ssd1327 is not on pypi #8

tjim opened this issue Nov 28, 2020 · 5 comments

Comments

@tjim
Copy link

tjim commented Nov 28, 2020

The driver for the ssd1327 does not appear on pypi.

Driver: https://github.com/adafruit/Adafruit_CircuitPython_SSD1327

The search page: https://pypi.org/search/?q=ssd1327

@jepler jepler transferred this issue from adafruit/circuitpython Nov 28, 2020
@jepler
Copy link

jepler commented Nov 28, 2020

I was not able to determine why this package is not available on pypi (#6 does not explain), and I don't have any compatible hardware to test. If you manually copy the adafruit_ssd1327.py file into your project is it working for you? Normally we disable uploading to pypi when we know that the code is not compatible with Blinka and can only work with CircuitPython.

@FoamyGuy
Copy link
Contributor

I think this was from before Blink_Displayio existed so it would have not been possible at the time. It may work fine now. I don't have hardware to check either though.

@tjim
Copy link
Author

tjim commented Nov 28, 2020

I've only used with a CircuitPython board before, here is how I tried it on Raspberry Pi, it fails:

pip3 install RPI.GPIO
pip3 install adafruit-blinka
pip3 install adafruit-blinka-displayio
pip3 install adafruit-circuitpython-display-text
git clone https://github.com/adafruit/Adafruit_CircuitPython_SSD1327.git
cp Adafruit_CircuitPython_SSD1327/examples/ssd1327_simpletest.py .
cp Adafruit_CircuitPython_SSD1327/adafruit_ssd1327.py .
python3 ssd1327_simpletest.py

Output is:

Traceback (most recent call last):
  File "ssd1327_simpletest.py", line 26, in <module>
display = adafruit_ssd1327.SSD1327(display_bus, width=WIDTH, height=HEIGHT)
  File "/home/pi/adafruit_ssd1327.py", line 91, in __init__
single_byte_bounds=True,
  File "/home/pi/.local/lib/python3.7/site-packages/displayio/display.py", line 148, in __init__
self._initialize(init_sequence)
  File "/home/pi/.local/lib/python3.7/site-packages/displayio/display.py", line 186, in _initialize
self._write(command, init_sequence[i + 2 : i + 2 + data_size])
  File "/home/pi/.local/lib/python3.7/site-packages/displayio/display.py", line 197, in _write
self._bus.begin_transaction()
AttributeError: 'I2CDisplay' object has no attribute 'begin_transaction'

@jepler
Copy link

jepler commented Nov 29, 2020

Ah, it appears that Adafruit_Blinka_Displayio does not yet support i2c displays at all. adafruit/Adafruit_Blinka_Displayio#2 -- once issue 2 is addressed in that repo, it would then be useful to upload this package to pypi. At present it appears that only FourWire (SPI) displays are supported.

@makermelissa
Copy link
Collaborator

Fixed by #11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants