stm32g0xx-hal icon indicating copy to clipboard operation
stm32g0xx-hal copied to clipboard

i2c-nonblocking: how to use?

Open jkorinth opened this issue 10 months ago • 1 comments

What is the state of non-blocking i2c, can it be used? I tried cargo add stm32g0xx-hal --no-default-features --features stm32g071cb,rt,i2c-nonblocking but compilation fails with could not find blocking in i2c in prelude.rs.

jkorinth avatar Apr 12 '24 09:04 jkorinth

Non-blocking things are under i2c::nonblocking https://github.com/stm32-rs/stm32g0xx-hal/blob/096121af08f320a3e115945c176c843e7526eff0/src/i2c/mod.rs#L5

PS: have you looked into embassy. It has the most comprehensive driver support for all STM32 families.

andresv avatar Apr 13 '24 14:04 andresv