Skip to content

Commit 90d1ee3

Browse files
committed
move buzzer examples to gpio4
- see: #53 (comment)
1 parent 0aa1fce commit 90d1ee3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

esp-hal-buzzer/examples/buzzer.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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();

esp-hal-buzzer/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
//! &ledc,
2121
//! timer::Number::Timer0,
2222
//! channel::Number::Channel1,
23-
//! peripherals.GPIO0,
23+
//! peripherals.GPIO4,
2424
//! );
2525
//!
2626
//! // Play a 1000Hz frequency

0 commit comments

Comments
 (0)