Noiasca HT16K33
A library for HT16K33 LED displays - 7 segment and 14 segment
Public Member Functions | List of all members
Noiasca_ht16k33 Class Reference

Base class for all HT16K33 displays. More...

#include <NoiascaHt16k33.h>

Inheritance diagram for Noiasca_ht16k33:
Noiasca_ht16k33_hw_14 Noiasca_ht16k33_hw_7 Noiasca_ht16k33_hw_14_4 Noiasca_ht16k33_hw_14_ext Noiasca_ht16k33_hw_7_4_c

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...
 

Detailed Description

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

See also
Noiasca_ht16k33_hw_7
Noiasca_ht16k33_hw_7_4_c
Noiasca_ht16k33_hw_14
Noiasca_ht16k33_hw_14_4
Noiasca_ht16k33_hw_14_ext

Member Function Documentation

◆ begin()

uint8_t Noiasca_ht16k33::begin ( uint8_t  i2c_addr,
uint8_t  numDevices = 1 
)

initialise hardware

Put this method in your setup

Parameters
i2c_addrthe I2C address of the display
numDevicesthe number of used devices
Returns
0 on success

◆ clear()

void Noiasca_ht16k33::clear ( void  )

Clear the display and place cursor to 0.

Clears the display and sets the cursor to 0.

◆ isConnected()

bool Noiasca_ht16k33::isConnected ( void  )

check if all ICs are responding

Returns
true if all ICs are responding

◆ setBrightness()

void Noiasca_ht16k33::setBrightness ( uint8_t  b)

set the brightness of the display

Parameters
bnew brightness from 0..15

◆ setCursor()

void Noiasca_ht16k33::setCursor ( uint8_t  newPosition)

set the cursor for the next writing position

Parameters
newPositionthe new position for the cursor

◆ setDigits()

void Noiasca_ht16k33::setDigits ( uint8_t  newDigits)

set the number of digits per device

Parameters
newDigitsmodify the used digits

◆ writeLowLevel()

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

Parameters
positiondigit to be written to
bitmaskthe bits/segments to be activated as bitmask