Skip to content

Conversation

@mosmuell
Copy link
Contributor

Adding support for bananaPi M(P)2 Zero detection. When trying to initialise I2C for the BPI, busio.py from adafruit_blinka was always trying to import adafruit_blinka.microcontroller.generic_micropython.i2c which imported machine (not found by python). As the file constants/boards.py contained the BPI board I figured it should also be included in this file as "any embedded linux". This works for my BananaPi P2 Zero.

Adding support for bananaPi M(P)2 Zero detection. When trying to initialise I2C for the BPI, busio.py from adafruit_blinka was always trying to import `adafruit_blinka.microcontroller.generic_micropython.i2c` which imported `machine` (not found by python). As the file `constants/boards.py` contained the BPI board I figured it should also be included in this file as "any embedded linux". This works for my BananaPi P2 Zero.
@makermelissa makermelissa changed the title Update board.py Add Banana Pi M2 Zero to any embedded linux detection Oct 18, 2021
@makermelissa
Copy link
Collaborator

Please try running black to format your files. I believe it is pinned to an older version, so keep that in mind.

@mosmuell
Copy link
Contributor Author

Formatted the file using black.

Copy link
Collaborator

@makermelissa makermelissa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thanks.

@makermelissa makermelissa merged commit 65d5035 into adafruit:main Oct 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants