Skip to content

Add I2C AddressingMode.#326

Open
reitermarkus wants to merge 3 commits intostm32-rs:masterfrom
reitermarkus:i2c
Open

Add I2C AddressingMode.#326
reitermarkus wants to merge 3 commits intostm32-rs:masterfrom
reitermarkus:i2c

Conversation

@reitermarkus
Copy link
Copy Markdown
Contributor

@reitermarkus reitermarkus commented Jul 23, 2022

This doesn't actually do anything useful at the moment since all functions that accept an address are only u8, but makes the code a bit more readable.

It took me quite a while to figure out why my code was working with the STM32 C HAL but not in Rust: The C HAL expects the address to already be shifted while this is done internally in the Rust HAL.

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.

1 participant