Skip to content

Commit fcfc014

Browse files
committed
Fix v2-speaker example
1 parent c1fdffc commit fcfc014

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/v2-speaker/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ fn main() -> ! {
4848
let speaker = pwm::Pwm::new(board.PWM0);
4949
speaker
5050
// output the waveform on the speaker pin
51-
.set_output_pin(pwm::Channel::C0, &speaker_pin.degrade())
51+
.set_output_pin(pwm::Channel::C0, speaker_pin.degrade())
5252
// Use prescale by 16 to achive darker sounds
5353
.set_prescaler(pwm::Prescaler::Div16)
5454
// Initial frequency

0 commit comments

Comments
 (0)