class documentation
String of NeoPixels
A singleton class based on the built-in NeoPixel class. The string is a list of NeoLed objects which can be accessed by index. The NeoLed objects are used to control the individual LEDs in the string. The string is used to control the LEDs on the board.
| Class Method | get |
Return the singleton instance |
| Method | __init__ |
Initialise the NeoPixel string |
| Method | set |
Set the RGB value of the LED |
| Method | write |
Write to NeoPixel String |
| Class Variable | _this |
Undocumented |
| Instance Variable | _buff |
Undocumented |
| Instance Variable | _num |
Undocumented |
| Instance Variable | _pin |
Undocumented |
| Instance Variable | _sm |
Undocumented |
Return the singleton instance
If the singleton already exists then it is returned. Otherwise it is created.
Initialise the NeoPixel string
This initialises the NeoPixel string. If the singleton already exists then an exception is raised.
Set the RGB value of the LED
This sets the RGB value of the LED.
| Parameters | |
| i | the index number of the led to set |
| rgb | A tuple containing the RGB values. Each value should be an integer between 0 and 255. |