com.buglabs.bug.jni.bugbeep
Class BugBeep

java.lang.Object
  extended by com.buglabs.bug.jni.common.CharDevice
      extended by com.buglabs.bug.jni.bugbeep.BugBeep

public class BugBeep
extends CharDevice

CharDevice representation of the BUG's piezo electric speaker.

Author:
Angel Roman

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

BugBeep

public BugBeep()
Method Detail

beep

public int beep(byte frequency,
                byte duration)
Parameters:
frequency - determines the tone to emit. The range is 0-15.
duration - determines how long the tone is played. Possible values are 0-15.
Returns:
0 if it was successful.