-
Notifications
You must be signed in to change notification settings - Fork 1
I2C/SPI Combined Driver #3
New issue
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
Conversation
|
Note: this should bump to 2.0.0 when released because the class name change from |
tannewt
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's hash out the new constructor args here first: adafruit/Adafruit_CircuitPython_SPA06_003#1
|
@tannewt this branch is updated with the same API that we settled on for the SPA06 now. |
tannewt
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Thank you!
Updating https://github.com/adafruit/Adafruit_CircuitPython_BMP5xx to 1.1.0 from 1.0.1: > Merge pull request adafruit/Adafruit_CircuitPython_BMP5xx#3 from FoamyGuy/i2c_spi_combo
This relies on the changes from: adafruit/Adafruit_CircuitPython_Register#59 So that should be merged before this is.
Adds SPI support by using new functionality pending addition to
adafruit_registerThis should be a major version bump if merged because the class name changed from the bus specific
BMP5XX_I2Cto the now genericBMP5XX.The bus type gets determined by whether
spiandcsori2care passed to the constructor. Everything gets handled externally and code that using the driver has the same API after the BMP5XX class is created.Internally the command and chip_id register descriptors were changed from UnaryStructs to RW/RO Bits. This was because the (Register_SPI)[https://github.com/adafruit/Adafruit_CircuitPython_Register_SPI] classes that I started from only had Bit and Bits implemented, no Struct(s). The change doesn't make any difference in the API.
I tested both I2C and SPI examples successfully on
Adafruit CircuitPython 10.0.0-beta.3 on 2025-08-29; Adafruit Feather RP2040 with rp2040