|
SunSPOT API V4.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IToneGenerator
Interface to represent a simple tone generator. Should have something like a real frequency response, to participate in this interface.
| Method Summary | |
|---|---|
void |
beep()
Initiate a tone at the set frequency for the set duration, the beep will terminate itself asynchronously. |
void |
endTone()
end running tone |
double |
getFrequency()
get the current frequency setting |
void |
setDuration(int dur)
Set the duration of current beep time. |
void |
setFrequency(double hz)
set the desired tone frequency |
void |
startTone()
start a tone at the set frequency |
| Method Detail |
|---|
void setFrequency(double hz)
hz - value of frequency in Hertzdouble getFrequency()
void setDuration(int dur)
dur - the time of the duration in millisecondsvoid beep()
void startTone()
void endTone()
|
SunSPOT API V4.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||