-
Notifications
You must be signed in to change notification settings - Fork 10
Update to CP 10 with busdisplay #38
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the fix!
I think adding this in docs/api.rst
should fix the actions error. Similar to this one: https://github.com/adafruit/Adafruit_CircuitPython_SSD1681/blob/58e49d44dab693728c1515a8092faa5b9469a869/docs/api.rst?plain=1#L7-L8
API Reference
#############
adafruit_bitmapsaver.py
Outdated
@@ -177,7 +180,7 @@ def save_pixels( | |||
raise ValueError( | |||
"Third argument must be a Palette or ColorConverter for a Bitmap save" | |||
) | |||
elif not isinstance(pixel_source, Display): | |||
elif not isinstance(pixel_source, BusDisplay): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
elif not isinstance(pixel_source, BusDisplay): | |
elif not isinstance(pixel_source, (BusDisplay, FramebufferDisplay)): |
Please add FramebufferDisplay
here as well, it hasfill_row()
and is supported by this library too.
It will need to import it as well
from framebufferio import FramebufferDisplay
eae737d
to
b75aac8
Compare
Oh I didn't do a local sphinx build. It complained about busdisplay too, it passes now. I'm actually not a big fan of testing for Can we test for |
@Neradoc yes, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! This looks good to me.
Updating https://github.com/adafruit/Adafruit_CircuitPython_BitmapSaver to 1.3.4 from 1.3.3: > Merge pull request adafruit/Adafruit_CircuitPython_BitmapSaver#38 from Neradoc/displayio-to-busdisplay
displayio.Display
was deprecated in 9 and removed in 10.This removes compatibility with Circuitpython 8 and earlier.