|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjcontrol.io.Buzzer
public class Buzzer
Makes some noise using the buzzer connected to the JControl module.
Wrapper for class PWM.
| lib (Sticker, PLUI, SmartDisplay) |
| Constructor Summary | |
|---|---|
Buzzer()
Constructs a new Buzzer using the default PWM channel. |
|
Buzzer(int useChannel)
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, notifyAll, wait |
| Constructor Detail |
|---|
public Buzzer()
public Buzzer(int useChannel)
useChannel - the PWM channel to use| Method Detail |
|---|
public void off()
off in interface SoundDevicepublic void on(int frequency)
off.
on in interface SoundDevicefrequency - to use (range 250 ... 32767 Hz)
public void on(int frequency,
int duration)
on in interface SoundDevicefrequency - 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 | |||||||