|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.buglabs.bug.jni.common.CharDevice
com.buglabs.bug.jni.bugbeep.BugBeep
public class BugBeep
CharDevice representation of the BUG's piezo electric speaker.
| Field Summary |
|---|
| Fields inherited from class com.buglabs.bug.jni.common.CharDevice |
|---|
fd |
| Constructor Summary | |
|---|---|
BugBeep()
|
|
| Method Summary | |
|---|---|
int |
beep(byte frequency,
byte duration)
|
| Methods inherited from class com.buglabs.bug.jni.common.CharDevice |
|---|
close, getFileDescriptor, getline, ioctl, lseek, open, read, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BugBeep()
| Method Detail |
|---|
public int beep(byte frequency,
byte duration)
frequency - determines the tone to emit. The range
is 0-15.duration - determines how long the tone is played.
Possible values are 0-15.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||