Jsonify Boards and Chips for easier importing#1040
Jsonify Boards and Chips for easier importing#1040makermelissa merged 18 commits intoadafruit:mainfrom
Conversation
|
It looks like RP2040_U2IF runs on the computer itself, so importlib should be available. For micropython, it looks like |
|
I was able to write some import and path functions that work with both linux and MicroPython. |
|
It's currently failing because it's dependent on adafruit/Adafruit_Python_PlatformDetect#408 |
|
Almost done working on this and testing. Turns out there is a bunch of tech debt I need to clean up (this was done in #1042), but Blinka should work much better when finished. |
|
I think at this point it's mostly just testing left. I was able to run it successfully on MicroPython and the Binho Nova (similar to the RP2040_U2IF). The rest of the boards should just work as it's really Python vs MicroPython. |
|
This has been successfully tested on the following boards:
Once merged, this should be a major release update. |
tannewt
left a comment
There was a problem hiding this comment.
One question. Looks like a good clean up!
|
I refactored the microcontroller import code. I left the board import code the same as it is a slightly simpler format. I retested on MicroPython and a Pi 5. Everything else should work just fine if those 2 are passing. |
This resolves #447.
The boards I would like to make sure this passes on include:
I think that should cover enough different types to show it works. This is because not all boards have importlib such as the MicroPython boards, which will likely need to retain the if/else structure.