Home | Trees | Indices | Help |
---|
|
|
|||
|
|||
LEDSprite Allows the creation of a LED Sprite that is defined in a text file. |
|||
LEDText A LEDSprite object of a piece of text. |
|
|||
|
|||
|
|||
int |
|
||
tuple |
|
||
|
|||
|
|||
|
|||
int |
|
||
|
|||
|
|||
|
|||
int |
|
||
|
|||
|
|||
|
|||
|
|||
LEDText |
|
||
|
|||
|
|||
LEDSprite |
|
||
|
|
Checks that init_matrices has been called and throws an error if not
|
Checks if given color is number between 0-16 if an int or 0-f, or - if string
|
Converts the given color to an int.
|
Converts given math coordinates to standard programming coordinates
|
Creates a chain of led matrices set at particular offsets into the frame buffer The order of the led matrices in the list indicate the order they are physically hooked up with the first one connected to Pi.
|
Initiallizes led matrices in a grid pattern with either a given number of rows and columns. If num_rows and num_cols is not given, it will detect the number of matrices you have and automatically set up a grid pattern with a max number of columns of 4.
|
Shows the current framebuffer on the display. Tells the led_driver to send framebuffer to SPI port. Refreshes the display using current framebuffer.
|
Unintializes matrices and frees all memory. Should be called at the end of a program to avoid memory leaks. Also, clears the display. |
Fills the framebuffer with the given color.
|
Sends point to the framebuffer.
Note: Will not display the point until show() is called. |
Creates a rectangle from start point using given dimensions
|
Create a line from point_a to point_b. Uses Bresenham's Line Algorithm http://en.wikipedia.org/wiki/Bresenham's_line_algorithm
|
A faster c implementation of line. Use if you need the speed. |
Sets given string to be displayed on the led matrix Example: >>> text("Hello World", (0,0), (0,1), (0,5)) >>> show() Displays only part of the first vertical line in 'H'
|
Sets given sprite into the framebuffer.
|
Sends the entire frame (represented as a numpy bitmap) to the led matrix.
Note: bitmap dimensions must be the same as the dimensions of the container (non rotated). |
Converts given character to a sprite.
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Tue Nov 11 23:43:18 2014 | http://epydoc.sourceforge.net |