Unicorn Library Class
|
index |
Unicorn HAT HD library 2.
Drive the 16x16 RGB pixel Pimoroni Unicorn HAT HD
over SPI from a Raspberry Pi or compatible platform.
Using the two chip selectors
|
||||||
|
|
|
|
||
|
|
Set the display brightness between 0.0 and 1.0. Clear the buffer. enable_addressing(enabled=True) Enable multi-panel addressing support (for Ubercorn). enable_display(address, enabled=True) Enable a single display in the chain. Get pixel colour in RGB as a tuple. Return entire buffer. Return the display rotation in degrees. Return the shape (width, height) of the display. Clear the buffer and immediately update Unicorn HAT HD. Set the display rotation in degrees. Set all pixels to RGB colour. Set a single pixel to RGB colour. set_pixel_hsv(x, y, h, s=1.0, v=1.0) Set a single pixel to a colour using HSV. Initialize Unicorn HAT HD. Set up the internal pixel buffer. setup_display(address, x, y, rotation) Configure a single display in the chain. Set all pixels to a colour determined by a shader function. Output the contents of the buffer to Unicorn HAT HD. |
|
||
|
|
HEIGHT = 16 |