Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add I2C scanner example #155

Merged
merged 1 commit into from
Nov 5, 2021
Merged

Conversation

systec-ms
Copy link
Contributor

@systec-ms systec-ms commented Nov 4, 2021

Inspired from stm32f3xx-hal.

Tested with a STM32F767.

Inspired from https://github.com/stm32-rs/stm32f3xx-hal/blob/master/examples/i2c_scanner.rs

Signed-off-by: Moritz Scheuren <moritz.scheuren@systec-electronic.com>
Copy link
Contributor

@hannobraun hannobraun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, @systec-ms!

Looks good. The only note I have is that I wouldn't consider semihosting a good option anymore. It would probably be best to replace it with something based on RTT, possibly defmt, and replace the whole OpenOCD configuration in this repository with cargo-embed or probe-run.

But yeah, that's out of scope for this pull request, I'd say 😄

@hannobraun hannobraun merged commit dbd1c1c into stm32-rs:master Nov 5, 2021
@hannobraun
Copy link
Contributor

By the way, your link doesn't work (errant . at the end).

@systec-ms systec-ms deleted the i2c_example branch November 18, 2021 12:20
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants