adafruit / Adafruit_Blinka_Displayio

Displayio for Blinka
MIT License
14 stars 20 forks source link

Blinka_Displayio has become more strict about supported devices #62

Closed FoamyGuy closed 3 years ago

FoamyGuy commented 3 years ago

This issue stems from the forum post here: https://forums.adafruit.com/viewtopic.php?f=60&t=180765&p=879483

With version 0.5.9 and earlier versions of Blinka_Displayio the examples and other scripts made to work with the Blinka_Displayio_PyGameDisplay library that I created could be run on generic PCs (or pretty much any device that can run CPython and PyGame I believe).

On the newer versions 0.6.0 and 0.6.1 of Blinka_Displayio this now raises an exception when it runs on device not specifically known to be supported by Adafruit_Blinka

Traceback (most recent call last):
  File "/blinka_displayio_tests/forum_issue.py", line 1, in <module>
    import displayio
  File "/blinka_displayio_tests/test_venv/lib/python3.8/site-packages/displayio/__init__.py", line 26, in <module>
    from displayio.i2cdisplay import I2CDisplay
  File "/blinka_displayio_tests/test_venv/lib/python3.8/site-packages/displayio/i2cdisplay.py", line 30, in <module>
    import microcontroller
  File "/blinka_displayio_tests/test_venv/lib/python3.8/site-packages/microcontroller/__init__.py", line 120, in <module>
    raise NotImplementedError("Microcontroller not supported:", chip_id)
NotImplementedError: ('Microcontroller not supported:', 'GENERIC_X86')

I plan to look into this further and work on a PR to hopefully resolve this so that newer versions will be able to run these scripts successfully once again. This issue is mostly to document what is known so far in one place to reference when looking into a solution.