PoliceLights

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard

Functions

Link copied to clipboard
open fun getBrightness(): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getStartIndex(): Int
Link copied to clipboard
open fun getStopIndex(): Int
Link copied to clipboard
Link copied to clipboard
open fun setBrightness(brightness: Int)
Brightness of selected animation.
Link copied to clipboard
open fun setIndexes(startIndex: Int, stopIndex: Int)
Set both the first, and last LED in a string that you'd like this animation to show on.
Link copied to clipboard
open fun setPeriod(period: Int)
set the length of one loop of an animation in milliseconds.
open fun setPeriod(duration: Int, timeUnit: TimeUnit)
set the length of one loop of an animation in specified unit.
Link copied to clipboard
open fun setPrimaryColor(color: Color)
Link copied to clipboard
open fun setSecondaryColor(color: Color)
Link copied to clipboard
open fun setStartIndex(startIndex: Int)
The first LED in the string that you'd like this animation to display on.
Link copied to clipboard
open fun setStopIndex(stopIndex: Int)
The last LED in the string that you'd like this animation to display on.
Link copied to clipboard
open fun setTertiaryColor(color: Color)