Skip to content

Instantly share code, notes, and snippets.

@stonehippo
Last active January 17, 2022 01:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stonehippo/cf34e856cbeb3263486686aa51dcfa64 to your computer and use it in GitHub Desktop.
Save stonehippo/cf34e856cbeb3263486686aa51dcfa64 to your computer and use it in GitHub Desktop.
Fixing CircuitPython Blinka displayio to work with the MCP2221A

Fixing CircuitPython Blinka displayio to work with the MCP2221A

Dependencies

  • Adafruit CircuitPython Blinka, configured to work with the MCP2221A breakout
  • Adafruit CircuitPython Blinka DisplayIO
  • Adafruit CircuitPython Display Text
  • Adafruit CircuitPython Bitmap Font

Issues to address

  • In Blinka, the MCP2221 pin defintion is not registered (microcontroller/__init__.py) submitted
  • In Blinka DisplayIO, attempts to concatenate list and byte array (displayio/_display.py, line 186; this seems to be fixed in the current version of the repo)
  • There seem to be some issues with using displayio: after writing the second object from a example that works fine on a microcontroller, the display flashes. I have confirmed that this occurs with DisplayIO running on Blinka with a RPi Zero W, so it's not an issue with the MCP2221 (which means I got it working!)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment