From 6ec228dcf8e1fb89f3a2849f4c997b3ba76710da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Jos=C3=A9=20Pereira?= Date: Fri, 16 Feb 2024 12:20:41 -0300 Subject: [PATCH] examples: raspberry-pi: Enable pwm MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Patrick José Pereira --- examples/raspberry-pi.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/raspberry-pi.rs b/examples/raspberry-pi.rs index 963ed4361c..2777a6c4fb 100644 --- a/examples/raspberry-pi.rs +++ b/examples/raspberry-pi.rs @@ -8,6 +8,8 @@ fn main() { println!("Setting up your navigator, ahoy!"); nav.init(); + nav.pwm_enable(true); + nav.set_pwm_freq_prescale(99); loop { nav.set_pwm_channel_value(PwmChannel::All, 0);