-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some HAL implementations expect I2C devices to use 7-bit addresses (e.g., [stm32f30x-hal](https://github.com/japaric/stm32f30x-hal)), and some HAL implementations use 8-bit addresses (e.g., [stm32l4xx-hal](https://github.com/stm32-rs/stm32l4xx-hal)). There's also always the possibility that the HTS221 is wired up to an I2C address shifter, changing the address entirely. Therefore, we no longer hard-code the I2C address as the 7-bit address. Instead, the address is provided to the Builder (defaulting to the 7-bit address, helpers to change to the default 8-bit address or explicitly use the default 7-bit address, or to use an arbitrary address), and that address is then used for I2C reads and writes. fixes #4
- Loading branch information
1 parent
d48f6d8
commit f6cbbbf
Showing
2 changed files
with
140 additions
and
63 deletions.
There are no files selected for viewing
This file contains 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
Oops, something went wrong.