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

#include <MHV_Display_Holtek_HT1632.h>

Inheritance diagram for MHV_Display_Holtek_HT1632:
MHV_Display_Monochrome MHV_Device_TX

List of all members.

Public Member Functions

 MHV_Display_Holtek_HT1632 (volatile uint8_t *dataDir, volatile uint8_t *dataOut, volatile uint8_t *dataIn, uint8_t dataPin, int8_t dataPinchangeInterrupt, volatile uint8_t *writeDir, volatile uint8_t *writeOut, volatile uint8_t *writeIn, uint8_t writePin, int8_t writePinchangeInterrupt, MHV_HT1632_MODE mode, uint8_t arrayX, uint8_t arrayY, void(*csCallback)(uint8_t x, uint8_t y, bool active), uint8_t *frameBuffer, MHV_RingBuffer *txBuffers)
void brightness (uint8_t brightness)
void poweroff ()
void poweron ()
void flush ()
void setPixel (uint16_t row, uint16_t col, uint8_t value)
uint8_t getPixel (uint16_t row, uint16_t col)

Detailed Description

Definition at line 50 of file MHV_Display_Holtek_HT1632.h.


Constructor & Destructor Documentation

MHV_Display_Holtek_HT1632::MHV_Display_Holtek_HT1632 ( volatile uint8_t *  dataDir,
volatile uint8_t *  dataOut,
volatile uint8_t *  dataIn,
uint8_t  dataPin,
int8_t  dataPinchangeInterrupt,
volatile uint8_t *  writeDir,
volatile uint8_t *  writeOut,
volatile uint8_t *  writeIn,
uint8_t  writePin,
int8_t  writePinchangeInterrupt,
MHV_HT1632_MODE  mode,
uint8_t  arrayX,
uint8_t  arrayY,
void(*)(uint8_t x, uint8_t y, bool active)  csCallback,
uint8_t *  frameBuffer,
MHV_RingBuffer txBuffers 
)

Initialise the library

Parameters:
dataDirA member of the MHV_PIN_* macro the data pin
dataOutA member of the MHV_PIN_* macro
dataInA member of the MHV_PIN_* macro
dataPinA member of the MHV_PIN_* macro
dataPinchangeInterruptA member of the MHV_PIN_* macro
writeDirA member of the MHV_PIN_* macro the write pin
writeOutA member of the MHV_PIN_* macro
writeInA member of the MHV_PIN_* macro
writePinA member of the MHV_PIN_* macro
writePinchangeInterruptA member of the MHV_PIN_* macro
modeWhat mode the displays should be run in
arrayXthe width of the array in number of displays
arrayYthe height of the array in number of displays
csCallbackA callback to select which display is active (lines must be active low, x & y select the display)
frameBuffermemory for a framebuffer, must be at least arrayX * arrayY * displayX * displayY / 8 bytes long
txBuffersA ringbuffer used for text printing

Definition at line 59 of file MHV_Display_Holtek_HT1632.cpp.


Member Function Documentation

void MHV_Display_Holtek_HT1632::brightness ( uint8_t  brightness_in)

Set the brightness of all modules

Parameters:
brightness_inthe brightness (from 0 to 15)

Definition at line 336 of file MHV_Display_Holtek_HT1632.cpp.

void MHV_Display_Holtek_HT1632::flush ( )

Flush the framebuffer to the displays

Definition at line 273 of file MHV_Display_Holtek_HT1632.cpp.

uint8_t MHV_Display_Holtek_HT1632::getPixel ( uint16_t  col,
uint16_t  row 
) [virtual]

Get a pixel

Parameters:
colthe column of the pixel
rowthe row of the pixel
Returns:
the value of the pixel

Implements MHV_Display_Monochrome.

Definition at line 181 of file MHV_Display_Holtek_HT1632.cpp.

void MHV_Display_Holtek_HT1632::poweroff ( )

Put all modules to sleep

Definition at line 396 of file MHV_Display_Holtek_HT1632.cpp.

void MHV_Display_Holtek_HT1632::poweron ( )

Wake all modules up

Definition at line 409 of file MHV_Display_Holtek_HT1632.cpp.

void MHV_Display_Holtek_HT1632::setPixel ( uint16_t  col,
uint16_t  row,
uint8_t  value 
) [virtual]

Set a pixel

Parameters:
colthe column of the pixel
rowthe row of the pixel
valuethe value of the pixel

Implements MHV_Display_Monochrome.

Definition at line 135 of file MHV_Display_Holtek_HT1632.cpp.


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