File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1- //! Play songs through a piezo-electric buzzer plugged on GPIO0 .
1+ //! Play songs through a piezo-electric buzzer plugged on GPIO4 .
22//!
33//! This assumes that a piezo-electric buzzer is connected to the pin assigned
4- //! to `buzzer`. (GPIO0 )
4+ //! to `buzzer`. (GPIO4 )
55
66#![ no_std]
77#![ no_main]
@@ -27,7 +27,7 @@ fn main() -> ! {
2727 & ledc,
2828 timer:: Number :: Timer0 ,
2929 channel:: Number :: Channel1 ,
30- peripherals. GPIO0 ,
30+ peripherals. GPIO4 ,
3131 ) ;
3232
3333 buzzer. play_song ( & DOOM ) . unwrap ( ) ;
Original file line number Diff line number Diff line change 2020//! &ledc,
2121//! timer::Number::Timer0,
2222//! channel::Number::Channel1,
23- //! peripherals.GPIO0 ,
23+ //! peripherals.GPIO4 ,
2424//! );
2525//!
2626//! // Play a 1000Hz frequency
You can’t perform that action at this time.
0 commit comments