MHVLib  20111011
An efficiency oriented runtime library for AVR microcontrollers
MHV_PWMMatrix Class Reference

#include <MHV_PWMMatrix.h>

Inheritance diagram for MHV_PWMMatrix:
MHV_Display_Monochrome_Buffered MHV_Display_Monochrome MHV_Device_TX

List of all members.

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 ()

Detailed Description

Definition at line 41 of file MHV_PWMMatrix.h.


Constructor & Destructor Documentation

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

Parameters:
modewhether to scan rows, cols, individual pixels or auto
rowCountthe number of rows
colCountthe number of columns
frameBuffermemory to use for the framebuffer, must be at least rows * cols * uint8_t
txBuffersbuffers used for text transmission
rowOncallback to turn a row on
rowOffcallback to turn a row off
colOncallback to turn a column on
colOffcallback to turn a column off

Definition at line 45 of file MHV_PWMMatrix.cpp.


Member Function Documentation

void MHV_PWMMatrix::tick ( void  )

Definition at line 176 of file MHV_PWMMatrix.cpp.


The documentation for this class was generated from the following files: