new Buzzer()
Example
mcore.Buzzer()
.hz(1000)
.beat(1000)
.run();
Extends
- Electronic
Members
-
static SUPPORT
-
a getter interface, which returns the mainboards the Buzzer module supported
-
protocol
-
a getter interface, which returns the protocol
Methods
-
beat(beat)
-
Set beat
Parameters:
Name Type Description beat
Number beat value such as 250, 1000
-
hz(hz)
-
Set hz
Parameters:
Name Type Description hz
Number hz value such as 200
-
run()
-
run Buzzer sensor
-
tone(tone)
-
Set tone
Parameters:
Name Type Default Description tone
String C5 tone value such as "C5", "D5"