mirror of
https://github.com/italicsjenga/rp-hal-boards.git
synced 2025-01-11 13:01:30 +11:00
Bump i2c_pio to an API with better inference.
This commit is contained in:
parent
0e7abdc705
commit
b363038477
|
@ -38,7 +38,7 @@ panic-halt= "0.2.0"
|
||||||
embedded-hal ="0.2.5"
|
embedded-hal ="0.2.5"
|
||||||
cortex-m-rtic = "0.6.0-alpha.5"
|
cortex-m-rtic = "0.6.0-alpha.5"
|
||||||
nb = "1.0"
|
nb = "1.0"
|
||||||
i2c-pio = { git = "https://github.com/ithinuel/i2c-pio-rs", rev = "fb6167d02b7fbc46a83f344f5242823bcd16e271" }
|
i2c-pio = { git = "https://github.com/ithinuel/i2c-pio-rs", rev = "afc2dad0e955da2b712d7f7cd78c7af88ddc6a45" }
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["boot2", "rt"]
|
default = ["boot2", "rt"]
|
||||||
|
|
|
@ -103,7 +103,7 @@ fn main() -> ! {
|
||||||
|
|
||||||
let (mut pio, sm0, _, _, _) = pac.PIO0.split(&mut pac.RESETS);
|
let (mut pio, sm0, _, _, _) = pac.PIO0.split(&mut pac.RESETS);
|
||||||
|
|
||||||
let mut i2c_pio = i2c_pio::I2C::<_, _, _, _, hal::gpio::FunctionPio0>::new(
|
let mut i2c_pio = i2c_pio::I2C::new(
|
||||||
&mut pio,
|
&mut pio,
|
||||||
pins.gpio20,
|
pins.gpio20,
|
||||||
pins.gpio21,
|
pins.gpio21,
|
||||||
|
|
Loading…
Reference in a new issue