-
Notifications
You must be signed in to change notification settings - Fork 381
Description
At this point, there are a lot of board that are handled in Blinka and the original way of having a huge if/elif block of boards is starting to get a bit silly. I'm wondering if we can do something more clever like keeping a data file (maybe json or some other format) that holds the detected board name, the import path, supported features, etc and just do a lookup in there.
One advantage of this is it would give a central place to add new boards and then all the scripts could just look up in there. Like let's say we add board xyz and it has GPIO and I2C working, but nothing else. So then for instance, the analogio script would see that the analogio feature isn't supported and report back that the feature isn't implemented on board xyz.
Anyway, this was a quick idea to reduce the complexity of the code and it will probably need to be altered during implementation.