public class MuteControl
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_MUTE_OUTPUT |
| Constructor and Description |
|---|
MuteControl()
Creates a MuteControl using Default GPIO Number
|
MuteControl(int gpio)
Creates a Mute control defined by GPIO Number
|
| Modifier and Type | Method and Description |
|---|---|
int |
getMuteIO()
Gets the GPIO that we will use for Muting
|
boolean |
getMuteState()
Get the state of Mute
|
boolean |
muteOutput(boolean mute)
Mute or unmute current output.
|
public static final int DEFAULT_MUTE_OUTPUT
public MuteControl(int gpio)
throws java.lang.Exception
gpio - the GPIO we are using. These are Pi4J numbersjava.io.IOException - if unable to create output pinjava.lang.Exceptionpublic MuteControl()
throws java.lang.Exception
java.lang.Exception - An exception thrown if unable to create based on GPIOpublic int getMuteIO()
public boolean getMuteState()
public boolean muteOutput(boolean mute)
mute - true if we want to mute