Open enelson1001 opened 2 years ago
Well the problem is you are not calling the macro correctly. Check the documentation for new_std!()
, you need to state the type signature explicitly as well. The usual pattern would be something like:
type SclPin = [[[TYPE OF pins.gpio22]]];
type SdaPin = [[[TYPE OF pins.gpio21]]];
type I2cBus = i2c::Master<i2c::I2C0, SdaPin, SclPin>;
...
let i2c_bus_manager = shared_bus::new_std!(I2cBus = i2c_bus_0).unwrap();
I got lost on your example for using shared-bus with threads.
My cargo.toml file in [dependencies]
My main.rs
My error
1. Sorry I am new to rust, what needs to be done to get rid of the error. 2. I tried xtensa feature but that failed with " cannot find macro
llvm_asm
in this scope"