Package frclib.archive
Class FrcDigitalRGB
java.lang.Object
trclib.archive.TrcRGBLight
frclib.archive.FrcDigitalRGB
-
Nested Class Summary
Nested classes/interfaces inherited from class trclib.archive.TrcRGBLight
TrcRGBLight.RGBColor -
Field Summary
Fields inherited from class trclib.archive.TrcRGBLight
COLOR_BLACK, COLOR_BLUE, COLOR_CYAN, COLOR_GREEN, COLOR_MAGENTA, COLOR_MAX_VALUE, COLOR_MIN_VALUE, COLOR_RED, COLOR_WHITE, COLOR_YELLOW -
Constructor Summary
ConstructorsConstructorDescriptionFrcDigitalRGB(String instanceName, int redChannel, int greenChannel, int blueChannel) -
Method Summary
Modifier and TypeMethodDescriptionbooleangetBlue()This method returns the state of the BLUE light.booleangetGreen()This method returns the state of the GREEN light.booleangetRed()This method returns the state of the RED light.voidsetBlue(boolean enabled) This method sets the BLUE light ON or OFF.voidsetGreen(boolean enabled) This method sets the GREEN light ON or OFF.voidsetRed(boolean enabled) This method sets the RED light ON or OFF.
-
Constructor Details
-
FrcDigitalRGB
-
-
Method Details
-
getRed
public boolean getRed()Description copied from class:TrcRGBLightThis method returns the state of the RED light.- Specified by:
getRedin classTrcRGBLight- Returns:
- true if the RED light is ON, false otherwise.
-
getGreen
public boolean getGreen()Description copied from class:TrcRGBLightThis method returns the state of the GREEN light.- Specified by:
getGreenin classTrcRGBLight- Returns:
- true if the GREEN light is ON, false otherwise.
-
getBlue
public boolean getBlue()Description copied from class:TrcRGBLightThis method returns the state of the BLUE light.- Specified by:
getBluein classTrcRGBLight- Returns:
- true if the RED light is BLUE, false otherwise.
-
setRed
public void setRed(boolean enabled) Description copied from class:TrcRGBLightThis method sets the RED light ON or OFF.- Specified by:
setRedin classTrcRGBLight- Parameters:
enabled- specifies true to turn the RED light ON, false to turn it off.
-
setGreen
public void setGreen(boolean enabled) Description copied from class:TrcRGBLightThis method sets the GREEN light ON or OFF.- Specified by:
setGreenin classTrcRGBLight- Parameters:
enabled- specifies true to turn the GREEN light ON, false to turn it off.
-
setBlue
public void setBlue(boolean enabled) Description copied from class:TrcRGBLightThis method sets the BLUE light ON or OFF.- Specified by:
setBluein classTrcRGBLight- Parameters:
enabled- specifies true to turn the BLUE light ON, false to turn it off.
-