Skip to content

Commit

Permalink
examples: raspberry-pi: Enable pwm
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick José Pereira <[email protected]>
  • Loading branch information
patrickelectric committed Feb 22, 2024
1 parent ffb99c3 commit 580c25b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/raspberry-pi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ fn main() {

println!("Setting up your navigator, ahoy!");
nav.init();
nav.set_pwm_enable(true);
nav.set_pwm_freq_prescale(99);

loop {
nav.set_pwm_channel_value(PwmChannel::All, 0);
Expand Down

0 comments on commit 580c25b

Please sign in to comment.