Package ca.team3161.lib.robot
Class BlinkinLEDController
- java.lang.Object
-
- ca.team3161.lib.robot.subsystem.AbstractSubsystem
-
- ca.team3161.lib.robot.subsystem.AbstractPooledSubsystem
-
- ca.team3161.lib.robot.subsystem.RepeatingPooledSubsystem
-
- ca.team3161.lib.robot.BlinkinLEDController
-
- All Implemented Interfaces:
Subsystem
public class BlinkinLEDController extends RepeatingPooledSubsystem
A class that controls a REV Robotics Blinkin
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BlinkinLEDController.Pattern
-
Nested classes/interfaces inherited from class ca.team3161.lib.robot.subsystem.AbstractSubsystem
AbstractSubsystem.RunTask
-
-
Field Summary
-
Fields inherited from class ca.team3161.lib.robot.subsystem.AbstractSubsystem
job, resourceLocks, THREAD_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description BlinkinLEDController(int pwmPort)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
defineResources()
Define the set of resourceLocks required for this Subsystem's task.void
setLEDPattern(BlinkinLEDController.Pattern pattern)
Sets the Blinkin LED Controller to the given patternvoid
task()
The background task to run.-
Methods inherited from class ca.team3161.lib.robot.subsystem.RepeatingPooledSubsystem
isDone, start
-
Methods inherited from class ca.team3161.lib.robot.subsystem.AbstractPooledSubsystem
getExecutorService
-
Methods inherited from class ca.team3161.lib.robot.subsystem.AbstractSubsystem
acquireResources, cancel, getJob, isCancelled, isScheduled, isStarted, releaseResources, require
-
-
-
-
Method Detail
-
setLEDPattern
public void setLEDPattern(BlinkinLEDController.Pattern pattern)
Sets the Blinkin LED Controller to the given pattern- Parameters:
pattern
- The pattern you want to set the controller to
-
defineResources
public void defineResources()
Description copied from interface:Subsystem
Define the set of resourceLocks required for this Subsystem's task.- See Also:
AbstractSubsystem.require(Object)
-
task
public void task()
Description copied from interface:Subsystem
The background task to run.
-
-