Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick José Pereira <[email protected]>
  • Loading branch information
patrickelectric committed Dec 11, 2024
1 parent 1aa1e8c commit eb8691c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ fn set_pwm_freq_hz(freq: f32) {
>>> navigator.set_pwm_channel_value(PwmChannel.Ch1, 2000)\n
>>> navigator.set_pwm_enable(True)"]
fn set_pwm_channel_value(channel: usize, value: f32) {
with_navigator!().set_pwm_duty_cycle(channel, value / 4096)
with_navigator!().set_pwm_duty_cycle(channel, value / 4096.0)
}

#[cpy_fn]
Expand Down

0 comments on commit eb8691c

Please sign in to comment.