|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jcontrol.io.Buzzer
public class Buzzer
Makes some noise using the buzzer connected to the JControl module.
Wrapper for class PWM
.
Constructor Summary | |
---|---|
Buzzer()
Constructs a new Buzzer. |
Method Summary | |
---|---|
void |
off()
Turns off the Buzzer. |
void |
on(int frequency)
Turns on the Buzzer with the specified frequency. |
void |
on(int frequency,
int duration)
Turns on the Buzzer with the specified frequency and duration. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, notifyAll, toString, wait |
Constructor Detail |
---|
public Buzzer()
Method Detail |
---|
public void on(int frequency)
off
.
on
in interface SoundDevice
frequency
- to use (range 250 ... 32767 Hz)public void off()
off
in interface SoundDevice
public void on(int frequency, int duration)
on
in interface SoundDevice
frequency
- to use (range 250 ... 32767 Hz)duration
- for the noise (range 1 ... 32767 ms)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |