Skip to content

Left-shift addresses in Read/WriteDataAtAddress#668

Merged
stephenhensley merged 4 commits intoelectro-smith:masterfrom
cvpines:bug/i2c_addr
Jun 16, 2025
Merged

Left-shift addresses in Read/WriteDataAtAddress#668
stephenhensley merged 4 commits intoelectro-smith:masterfrom
cvpines:bug/i2c_addr

Conversation

@cvpines
Copy link
Copy Markdown
Contributor

@cvpines cvpines commented May 14, 2025

Left-shift the I2C device addresses passed into Read/WriteDataAtAddress, for consistency with the other I2C functions.

See #622 for details.

Note that this change is not backwards-compatible!

@cvpines cvpines marked this pull request as draft May 15, 2025 15:49
@cvpines
Copy link
Copy Markdown
Contributor Author

cvpines commented May 15, 2025

Will update existing uses of this library then un-draft

@cvpines cvpines marked this pull request as ready for review May 17, 2025 02:53
@cvpines
Copy link
Copy Markdown
Contributor Author

cvpines commented May 17, 2025

Updated all existing uses of affected methods (PCM3060, MCP23x17 drivers)

@stephenhensley stephenhensley added the bug Something isn't working label May 29, 2025
@github-actions
Copy link
Copy Markdown

Test Results

150 tests  ±0   150 ✅ ±0   0s ⏱️ ±0s
  1 suites ±0     0 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit 62c5631. ± Comparison against base commit f7c63ae.

@stephenhensley
Copy link
Copy Markdown
Collaborator

stephenhensley commented Jun 16, 2025

Confirming that I checked the PCM3060 via the Patch SM Board.
I am unable to check the MCP23x17 device that was affected, but the change looks good.

@stephenhensley stephenhensley merged commit 7d2ee18 into electro-smith:master Jun 16, 2025
13 checks passed
ndonald2 pushed a commit to infrasonicaudio/libDaisy that referenced this pull request Feb 5, 2026
* Left-shift addresses in Read/WriteDataAtAddress

* Improve comments to specify breaking change

* Update i2c addr for PCM3060 driver

* Remove i2c addr left shift from MCP23x17 driver

---------

Co-authored-by: Coriander Violet Pines <hello@corianderpines.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants