|
def | __init__ (self, numTris=1, LEDsPerTri=6, pin=18, brightness=20, rateLimitFPS=20, sm=0) |
| Initialisation routine for triangular GlowBit modules and tiled arrays thereof. More...
|
|
def | fillTri (self, tri, colour) |
| Fills all LEDs on a given triangle with the same colour. More...
|
|
def | demo (self) |
| Displays a simple demo pattern.
|
|
def | pixelsShow (self) |
| Pushes the internal pixel data buffer to the physical GlowBit LEDs. More...
|
|
def | pixelSet (self, i, colour) |
| Sets the i'th GlowBit LED to a 32-bit GlowBit colour value. More...
|
|
def | pixelSetNow (self, i, colour) |
| Sets the i'th GlowBit LED to a 32-bit GlowBit colour value and updates the physical LEDs. More...
|
|
def | pixelAdd (self, i, colour) |
| Adds a 32-bit GlowBit colour value to the i'th LED in the internal buffer only. More...
|
|
def | pixelSaturatingAdd (self, i, colour) |
| Adds a 32-bit GlowBit colour value to the i'th LED in the internal buffer. More...
|
|
def | pixelsFill (self, colour) |
| Fills all pixels with a solid colour value. More...
|
|
def | pixelsFillNow (self, colour) |
| Fills all pixels with a solid colour value and updates the physical LEDs. More...
|
|
def | blankDisplay (self) |
| Blanks the entire GlowBit display. More...
|
|
def | getPixel (self, N) |
| Returns the 32-bit GlowBit colour value of the i'th LED. More...
|
|
def | updateRateLimitFPS (self, rateLimitFPS) |
| Sets a new value for the GlowBit display's frames per second (FPS) limiter. More...
|
|
def | power (self) |
| Calculates an estimate for the total power draw given the current display data. More...
|
|
def | chaos (self, iters=100) |
| Sets random colour values on every LED on the attached GlowBit display. More...
|
|
def | wheel (self, pos) |
| Converts an integer "colour wheel position" to a packed 32-bit RGB GlowBit colour value. More...
|
|
def | rgbColour (self, r, g, b) |
| Converts the r, g, and b integer arguments to a packed 32-bit RGB GlowBit colour value. More...
|
|
def | glowbitColour2RGB (self, colour) |
| Converts a 32-bit GlowBit colour value to an (R,G,B) tuple. More...
|
|
def | red (self) |
| Returns the GlowBit colour value for pure red.
|
|
def | green (self) |
| Returns the GlowBit colour value for pure green.
|
|
def | blue (self) |
| Returns the GlowBit colour value for pure blue.
|
|
def | yellow (self) |
| Returns the GlowBit colour value for yellow.
|
|
def | purple (self) |
| Returns the GlowBit colour value for purple.
|
|
def | cyan (self) |
| Returns the GlowBit colour value for cyan.
|
|
def | white (self) |
| Returns the GlowBit colour value for white.
|
|
def | black (self) |
| Returns the GlowBit colour value for black.
|
|
def | colourMapSolid (self, index, minIndex, maxIndex) |
| Trivial colourmap method which always returns the colour in the parent object. More...
|
|
def | colourMapRainbow (self, index, minIndex, maxIndex) |
| Maps the pure hue colour wheel between minIndex and maxIndex. More...
|
|
Class for driving triangular GlowBit modules.