Package frclib.driverio
Class FrcRevBlinkin
java.lang.Object
trclib.driverio.TrcPriorityIndicator<TrcRevBlinkin.Pattern>
trclib.driverio.TrcRevBlinkin
frclib.driverio.FrcRevBlinkin
This class implements a platform dependent REV Blinkin device. It provides a platform dependent method that
sets the color pattern value to the device.
-
Nested Class Summary
Nested classes/interfaces inherited from class trclib.driverio.TrcRevBlinkin
TrcRevBlinkin.Pattern, TrcRevBlinkin.RevLedPattern
-
Field Summary
Fields inherited from class trclib.driverio.TrcPriorityIndicator
instanceName, tracer
-
Constructor Summary
ConstructorsConstructorDescriptionFrcRevBlinkin
(String instanceName, int channel) Constructor: Create an instance of the object. -
Method Summary
Modifier and TypeMethodDescriptionThis method gets the current set LED pattern.void
setPattern
(TrcRevBlinkin.Pattern pattern) This method sets the LED pattern to the physical REV Blinkin device.Methods inherited from class trclib.driverio.TrcPriorityIndicator
getPatternPriority, getPatternState, getPatternState, printPatternPriorityTable, reset, resetAllPatternStates, setPatternPriorities, setPatternState, setPatternState, setPatternState, setPatternState, setPatternState, setPatternState, toString
-
Constructor Details
-
FrcRevBlinkin
Constructor: Create an instance of the object.- Parameters:
instanceName
- specifies the instance name.channel
- specifies the PWM channel the device is on.
-
-
Method Details
-
getPattern
This method gets the current set LED pattern.- Specified by:
getPattern
in classTrcPriorityIndicator<TrcRevBlinkin.Pattern>
- Returns:
- currently set LED pattern.
-
setPattern
This method sets the LED pattern to the physical REV Blinkin device.- Specified by:
setPattern
in classTrcPriorityIndicator<TrcRevBlinkin.Pattern>
- Parameters:
pattern
- specifies the color pattern.
-