We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The examples here currently default to hardware I2C with commented-out code for CPX, software I2C and hardware SPI.
It would be relatively simple enough to default to "CPX or hardware I2C":
if hasattr(board, 'ACCELEROMETER_SCL'): i2c = busio.I2C(board.ACCELEROMETER_SCL, board.ACCELEROMETER_SDA) else: i2c = busio.I2C(board.SCL, board.SDA) lis3dh = adafruit_lis3dh.LIS3DH_I2C(i2c, address=0x19)
This way the two most likely scenarios will Just Work™
(it would obviously need better documentation too)
The text was updated successfully, but these errors were encountered:
adafruit#30 forgot to remove the commented CPX config
97ad17f
Fixed by #31
Sorry, something went wrong.
kattni
No branches or pull requests
The examples here currently default to hardware I2C with commented-out code for CPX, software I2C and hardware SPI.
It would be relatively simple enough to default to "CPX or hardware I2C":
This way the two most likely scenarios will Just Work™
(it would obviously need better documentation too)
The text was updated successfully, but these errors were encountered: