jcontrol.io
Interface SoundDevice

All Known Implementing Classes:
Buzzer

public interface SoundDevice

Defines behaviour for any single voice noise making device.

Version:
1.0
Author:
boehme
Available on JControl Devices:
lib (Sticker, PLUI, SmartDisplay)

Method Summary
 void off()
          Turns the noise making device off.
 void on(int frequency)
          Turns the noise making device on to a specific frequency.
 void on(int frequency, int duration)
          Turns the noise making device on to a specific frequncy and off after a specific duration.
 

Method Detail

off

void off()
Turns the noise making device off.


on

void on(int frequency)
Turns the noise making device on to a specific frequency.

Parameters:
frequency - (in Hz) to use.

on

void on(int frequency,
        int duration)
Turns the noise making device on to a specific frequncy and off after a specific duration.

Parameters:
frequency - (in Hz) to use
duration - (in milliseconds) to make noise.