Adafruit_Learning_System_Guides
Adafruit_Learning_System_Guides copied to clipboard
Displayio api 9x
These are the changes needed for changed displayio APIs in CircuitPython 9.0.0.
I have not yet checked any of the learn pages themselves for non-embedded code or references that need updating but I intend to over the coming days.
I have updated all of the non-github-embedded code in these learn guides now.
I've noticed there are still some github embedds from library examples rather than this repo that still make reference to displayio.FourWire. I believe they all had new / old fallback style code with a note to update them after 9.0 is made stable. I'll go through library examples next and open PRs for the ones that need to change
These are currently set with 9.x code only, they are not compatible with 8.x. There is ongoing discussion in discord about the direction to go and timing of this and library code / example updates. Converting this to draft now and potentially have more changes coming
Learn Pages that need changes to non-embeded code or references when this change is merged:
https://learn.adafruit.com/quickstart-using-adafruit-eink-epaper-displays-with-circuitpython/example-single-bitmap https://learn.adafruit.com/faderwave-synthesizer/code-the-faderwave-synth https://learn.adafruit.com/kitty-toe-bean-paw-keypad-color-tct/circuitpython-code-walkthrough https://learn.adafruit.com/midi-melody-maker/circuitpython-code-walkthrough https://learn.adafruit.com/adafruit-ov5640-camera-breakout/lcd-mirror-demo https://learn.adafruit.com/adafruit-ov5640-camera-breakout/lcd-mirror-demo-2 https://learn.adafruit.com/pico-w-http-server-with-circuitpython/code-the-pico-w-http-server https://learn.adafruit.com/raspberry-pi-pico-led-arcade-button-midi-controller-fighter/circuitpython-code-walkthrough https://learn.adafruit.com/adafruit-2-8-tft-touch-shield-v2/circuitpython-displayio-quickstart https://learn.adafruit.com/edge-speech-recognition-with-voice2json/demo-code https://learn.adafruit.com/walkmp3rson-personal-mp3-tape-player/code-the-walkmp3rson https://learn.adafruit.com/circuitpython-display-support-using-displayio/display-and-display-bus
@FoamyGuy is this ready to finish up?
@dhalbert I think so. My understanding is the intention was to do it when we move on from 8.x. I'll make another pass through this repo to see if there are any additional ones in need of updating and commit them here if so. I'll move this out of draft once it's ready.
I merged main, and had another pass through this repo. The latest commit changes the remaining usages of 8.x API.
I found A few more learn guide pages with non-embedded code that will need updated:
displayio.i2cdisplay: https://learn.adafruit.com/gravity-falls-memory-gun/code-the-memory-gun https://learn.adafruit.com/stepper-motor-turntable/code-the-turntable
display.fourwire: https://learn.adafruit.com/esp32-s3-ble-ios-media-controller/code-the-media-controller
I will update the guide pages now and make another comment here once it's complete.
All of these guide pages have been updated.