MHVLib
20111011
An efficiency oriented runtime library for AVR microcontrollers
|
#include <MHV_PWMMatrix.h>
Public Member Functions | |
MHV_PWMMatrix (uint16_t rowCount, uint16_t colCount, uint8_t *frameBuffer, MHV_RingBuffer *txBuffers, void(*rowOn)(uint16_t row), void(*rowOff)(uint16_t row), void(*colOn)(uint16_t column), void(*colOff)(uint16_t column), MHV_PWMMATRIX_MODE mode=MHV_PWMMATRIX_MODE_AUTO) | |
void | tick () |
Definition at line 41 of file MHV_PWMMatrix.h.
MHV_PWMMatrix::MHV_PWMMatrix | ( | uint16_t | rowCount, |
uint16_t | colCount, | ||
uint8_t * | frameBuffer, | ||
MHV_RingBuffer * | txBuffers, | ||
void(*)(uint16_t row) | rowOn, | ||
void(*)(uint16_t row) | rowOff, | ||
void(*)(uint16_t column) | colOn, | ||
void(*)(uint16_t column) | colOff, | ||
MHV_PWMMATRIX_MODE | mode = MHV_PWMMATRIX_MODE_AUTO |
||
) |
Establish a new matrix
mode | whether to scan rows, cols, individual pixels or auto |
rowCount | the number of rows |
colCount | the number of columns |
frameBuffer | memory to use for the framebuffer, must be at least rows * cols * uint8_t |
txBuffers | buffers used for text transmission |
rowOn | callback to turn a row on |
rowOff | callback to turn a row off |
colOn | callback to turn a column on |
colOff | callback to turn a column off |
Definition at line 45 of file MHV_PWMMatrix.cpp.
void MHV_PWMMatrix::tick | ( | void | ) |
Definition at line 176 of file MHV_PWMMatrix.cpp.