|
Neo
|
Yet Another Matrix Library. More...
#include <Neo.h>
Public Member Functions | |
| Neo (uint8_t displayCount, uint8_t cs, uint8_t din=0, uint8_t clk=0) | |
| Instantiates a new Neo class. More... | |
| void | begin () |
| Setups the Pins, SPI and Display. | |
| void | setBrightness (uint8_t value) |
| Sets the display brightness. More... | |
| void | displayTest () |
| Turns on every pixel for 100ms. | |
| void | append (byte frame[8]) |
| Append a character frame to the internal display buffer. More... | |
| void | renderDisplay (uint8_t disp, byte frame[8]) |
| Renders a character frame to a particular display position. More... | |
| void | renderRow (uint8_t disp, uint8_t row, byte data) |
| Renders a row of a display. More... | |
| void | clearDisplay () |
| Turns off all the pixels of the display(s) | |
| void | fillDisplay () |
| Turns on all the pixels of the display(s) | |
| void | shiftLeft () |
| Shifts the entire display buffer left by 1bit and re-renders the display. | |
| void | render () |
| Renders the content of the display buffer to the display. | |
Yet Another Matrix Library.
Small library to be used with one or more 8x8 Dot Matrix displays.
| Neo::Neo | ( | uint8_t | displayCount, |
| uint8_t | cs, | ||
| uint8_t | din = 0, |
||
| uint8_t | clk = 0 |
||
| ) |
Instantiates a new Neo class.
| displayCount | Number of 8x8 Matrix Display to use. |
| cs | The CS / LOAD pin number. |
| din | The DIN pin number if SPI not used, else not required. |
| clk | The CLK pin number if SPI not used, else not required. |
| void Neo::setBrightness | ( | uint8_t | value | ) |
Sets the display brightness.
| value | Brightness intensity from 0 - 15 |
| void Neo::append | ( | byte | frame[8] | ) |
Append a character frame to the internal display buffer.
| frame | byte array of length 8. |
| void Neo::renderDisplay | ( | uint8_t | disp, |
| byte | frame[8] | ||
| ) |
Renders a character frame to a particular display position.
| disp | The position of the display to render the frame. |
| frame | byte array of length 8. |
| void Neo::renderRow | ( | uint8_t | disp, |
| uint8_t | row, | ||
| byte | data | ||
| ) |
Renders a row of a display.
| disp | The position of the display to render. |
| row | The row index (Starts from 1). |
| data | A byte representing the state of the row. |
1.8.13