I2C/SPI Combined Driver#3
Merged
FoamyGuy merged 6 commits intoadafruit:mainfrom Oct 24, 2025
Merged
Conversation
Contributor
Author
|
Note: this should bump to 2.0.0 when released because the class name change from |
tannewt
reviewed
Oct 6, 2025
Member
tannewt
left a comment
There was a problem hiding this comment.
Let's hash out the new constructor args here first: adafruit/Adafruit_CircuitPython_SPA06_003#1
Contributor
Author
|
@tannewt this branch is updated with the same API that we settled on for the SPA06 now. |
adafruit-adabot
pushed a commit
to adafruit/Adafruit_CircuitPython_Bundle
that referenced
this pull request
Oct 24, 2025
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 file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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