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 TypeMethodDescriptionboolean
getBlue()
This method returns the state of the BLUE light.boolean
getGreen()
This method returns the state of the GREEN light.boolean
getRed()
This method returns the state of the RED light.void
setBlue
(boolean enabled) This method sets the BLUE light ON or OFF.void
setGreen
(boolean enabled) This method sets the GREEN light ON or OFF.void
setRed
(boolean enabled) This method sets the RED light ON or OFF.
-
Constructor Details
-
FrcDigitalRGB
-
-
Method Details
-
getRed
public boolean getRed()Description copied from class:TrcRGBLight
This method returns the state of the RED light.- Specified by:
getRed
in classTrcRGBLight
- Returns:
- true if the RED light is ON, false otherwise.
-
getGreen
public boolean getGreen()Description copied from class:TrcRGBLight
This method returns the state of the GREEN light.- Specified by:
getGreen
in classTrcRGBLight
- Returns:
- true if the GREEN light is ON, false otherwise.
-
getBlue
public boolean getBlue()Description copied from class:TrcRGBLight
This method returns the state of the BLUE light.- Specified by:
getBlue
in classTrcRGBLight
- Returns:
- true if the RED light is BLUE, false otherwise.
-
setRed
public void setRed(boolean enabled) Description copied from class:TrcRGBLight
This method sets the RED light ON or OFF.- Specified by:
setRed
in 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:TrcRGBLight
This method sets the GREEN light ON or OFF.- Specified by:
setGreen
in 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:TrcRGBLight
This method sets the BLUE light ON or OFF.- Specified by:
setBlue
in classTrcRGBLight
- Parameters:
enabled
- specifies true to turn the BLUE light ON, false to turn it off.
-