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 c1fdffc commit fcfc014Copy full SHA for fcfc014
examples/v2-speaker/src/main.rs
@@ -48,7 +48,7 @@ fn main() -> ! {
48
let speaker = pwm::Pwm::new(board.PWM0);
49
speaker
50
// output the waveform on the speaker pin
51
- .set_output_pin(pwm::Channel::C0, &speaker_pin.degrade())
+ .set_output_pin(pwm::Channel::C0, speaker_pin.degrade())
52
// Use prescale by 16 to achive darker sounds
53
.set_prescaler(pwm::Prescaler::Div16)
54
// Initial frequency
0 commit comments