Skip to content

Commit

Permalink
papercut
Browse files Browse the repository at this point in the history
  • Loading branch information
squell committed Nov 12, 2024
1 parent f55e0f1 commit a2c71cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion book/src/embedded-ecosystem.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ In both cases you can add the `--release` flag to turn on optimizations.
- You can find the documentation on the HAL here on [docs.embassy.dev](https://docs.embassy.dev/embassy-nrf/git/nrf52833/index.html). This website houses the docs for embassy for every available chip. Normally you'd search at [docs.rs](https://docs.rs), but that only shows one possible configuration of the HAL.
- To find out how to configure I2C for the nRF52833: [embassy-nrf TWIM demo example](https://github.com/embassy-rs/embassy/blob/main/examples/nrf52840/src/bin/twim.rs).
- You can find the LSM303AGR data sheet here: <https://www.st.com/resource/en/datasheet/lsm303agr.pdf>. You can find the accelerometer device ID in the `WHO_AM_I_A` register, at register address `0x0F`. You'll need `0x19` to address the accelerometer itself.
- Use the [`Twim::blocking_write_then_read`](https://docs.embassy.dev/embassy-nrf/git/nrf52833/twim/struct.Twim.html#method.blocking_write_read) method to first write the device address, then write the register address, and then read its contents into a buffer.
- Use the [`Twim::blocking_write_read`](https://docs.embassy.dev/embassy-nrf/git/nrf52833/twim/struct.Twim.html#method.blocking_write_read) method to first write the device address, then write the register address, and then read its contents into a buffer.
</details>

0 comments on commit a2c71cc

Please sign in to comment.