Constructors
constructor
- new SmartLed(pin, count, type?): SmartLed
-
Parameters
-
pin: number
-
count: number
-
Optional
type: LedType
Methods
clear
- clear(): void
-
Returns void
get
- get(index): Rgb
-
Returns Rgb
The color of the LED.
set
- set(index, rgb): void
-
Returns void
show
- show(): void
-
Returns void
Create a new Smart LED strip.