|
MHVLib
20111227
An efficiency oriented runtime library for AVR microcontrollers
|
#include <MHV_Display_Holtek_HT1632.h>
Public Member Functions | |
| MHV_Display_Holtek_HT1632 (MHV_DECLARE_PIN(data), MHV_DECLARE_PIN(write), 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 | ( | MHV_DECLARE_PIN(data) | , |
| MHV_DECLARE_PIN(write) | , | ||
| 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
| data | the data pin |
| writeDir | the write pin |
| 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 51 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 326 of file MHV_Display_Holtek_HT1632.cpp.
| void MHV_Display_Holtek_HT1632::flush | ( | ) |
Flush the framebuffer to the displays
Definition at line 263 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 171 of file MHV_Display_Holtek_HT1632.cpp.
| void MHV_Display_Holtek_HT1632::poweroff | ( | ) |
Put all modules to sleep
Definition at line 386 of file MHV_Display_Holtek_HT1632.cpp.
| void MHV_Display_Holtek_HT1632::poweron | ( | ) |
Wake all modules up
Definition at line 399 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 125 of file MHV_Display_Holtek_HT1632.cpp.