|
MHVLib
20111109
An efficiency oriented runtime library for AVR microcontrollers
|
#include <MHV_Display_Holtek_HT1632.h>
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) |
Definition at line 50 of file MHV_Display_Holtek_HT1632.h.
| 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
| dataDir | A member of the MHV_PIN_* macro the data pin |
| dataOut | A member of the MHV_PIN_* macro |
| dataIn | A member of the MHV_PIN_* macro |
| dataPin | A member of the MHV_PIN_* macro |
| dataPinchangeInterrupt | A member of the MHV_PIN_* macro |
| writeDir | A member of the MHV_PIN_* macro the write pin |
| writeOut | A member of the MHV_PIN_* macro |
| writeIn | A member of the MHV_PIN_* macro |
| writePin | A member of the MHV_PIN_* macro |
| writePinchangeInterrupt | A member of the MHV_PIN_* macro |
| mode | What mode the displays should be run in |
| arrayX | the width of the array in number of displays |
| arrayY | the height of the array in number of displays |
| csCallback | A callback to select which display is active (lines must be active low, x & y select the display) |
| frameBuffer | memory for a framebuffer, must be at least arrayX * arrayY * displayX * displayY / 8 bytes long |
| txBuffers | A ringbuffer used for text printing |
Definition at line 59 of file MHV_Display_Holtek_HT1632.cpp.
| void MHV_Display_Holtek_HT1632::brightness | ( | uint8_t | brightness_in | ) |
Set the brightness of all modules
| brightness_in | the 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
| col | the column of the pixel |
| row | the row 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
| col | the column of the pixel |
| row | the row of the pixel |
| value | the value of the pixel |
Implements MHV_Display_Monochrome.
Definition at line 135 of file MHV_Display_Holtek_HT1632.cpp.