We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbc691f commit 3261eccCopy full SHA for 3261ecc
boards/rp-pico/examples/pico_interpolator.rs
@@ -16,9 +16,6 @@
16
// The macro for our start-up function
17
use rp_pico::entry;
18
19
-// Time handling traits
20
-use embedded_time::rate::*;
21
-
22
// GPIO traits
23
use embedded_hal::digital::v2::OutputPin;
24
@@ -72,7 +69,7 @@ fn main() -> ! {
72
69
73
70
// The delay object lets us wait for specified amounts of time (in
74
71
// milliseconds)
75
- let mut delay = cortex_m::delay::Delay::new(core.SYST, clocks.system_clock.freq().integer());
+ let mut delay = cortex_m::delay::Delay::new(core.SYST, clocks.system_clock.freq().to_Hz());
76
77
// The single-cycle I/O block controls our GPIO pins
78
let mut sio = hal::Sio::new(pac.SIO);
0 commit comments