Noiasca HT16K33
A library for HT16K33 LED displays - 7 segment and 14 segment
|
Base class for all HT16K33 displays. More...
#include <NoiascaHt16k33.h>
Public Member Functions | |
uint8_t | begin (uint8_t i2c_addr, uint8_t numDevices=1) |
initialise hardware More... | |
void | blinkRate (uint8_t b) |
set the blink rate of the display | |
void | clear (void) |
Clear the display and place cursor to 0. More... | |
void | off (void) |
Turn the display off. | |
void | on (void) |
Turn the display on. | |
bool | isConnected (void) |
check if all ICs are responding More... | |
void | setBrightness (uint8_t b) |
set the brightness of the display More... | |
void | setCursor (uint8_t newPosition) |
set the cursor for the next writing position More... | |
void | setDigits (uint8_t newDigits) |
set the number of digits per device More... | |
void | writeLowLevel (uint8_t position, uint16_t bitmask) |
write to I2C More... | |
Base class for all HT16K33 displays.
This is an (abstract) class used as base for all implementations It holds all common variables and member functions. If you create your instance (your object), don't use this base class but one of implementations
uint8_t Noiasca_ht16k33::begin | ( | uint8_t | i2c_addr, |
uint8_t | numDevices = 1 |
||
) |
initialise hardware
Put this method in your setup
i2c_addr | the I2C address of the display |
numDevices | the number of used devices |
void Noiasca_ht16k33::clear | ( | void | ) |
Clear the display and place cursor to 0.
Clears the display and sets the cursor to 0.
bool Noiasca_ht16k33::isConnected | ( | void | ) |
check if all ICs are responding
void Noiasca_ht16k33::setBrightness | ( | uint8_t | b | ) |
set the brightness of the display
b | new brightness from 0..15 |
void Noiasca_ht16k33::setCursor | ( | uint8_t | newPosition | ) |
set the cursor for the next writing position
newPosition | the new position for the cursor |
void Noiasca_ht16k33::setDigits | ( | uint8_t | newDigits | ) |
set the number of digits per device
newDigits | modify the used digits |
void Noiasca_ht16k33::writeLowLevel | ( | uint8_t | position, |
uint16_t | bitmask | ||
) |
write to I2C
I2C lowLevel write of a bitmask to the IC to a specific position
position | digit to be written to |
bitmask | the bits/segments to be activated as bitmask |