Noiasca Tool Kit
Several helper functions and classes to make life with Arduino easier
|
HT16K33 Expander Hardware class. More...
#include <Noiasca_HT16K33.h>
Public Member Functions | |
HT16K33expander (uint8_t i2cAddr) | |
HT16K33expander (TwoWire &i2cPort, uint8_t i2cAddr) | |
int | clear () |
int | setBrightness (uint8_t b) |
void | digitalWrite (uint8_t pin, uint8_t val) |
write to a pin More... | |
void | setPinStatus (uint8_t _pinStatus) |
** More... | |
HT16K33 Expander Hardware class.
Takes Wire and I2C address and administrates the port. This connects the low level hardware. The class is needed becauses each pin on the HT16K33 should be treated seperately but the IC accepts needs a bitmask for each common cathode.
|
inline |
i2cAddr | the I2C address (0x70 - 0x77) |
|
inline |
i2cAddr | the I2C address (0x70 - 0x77) |
i2cPort | use Wire or any other TwoWire (I2C) interface you have available on your microcontroller |
|
inline |
reset all pins
|
inline |
set the brightness of the display
|
inline |
write to a pin
set or unset an output pin. The pin is 0..127 (8 common cathodes with 16 common anodes)
pin | the pin to write. |
val | the value LOW or HIGH |
|
inline |
**
set pin status
This function only sets the internal variable - doesn't change pins
_pinStatus | the new value for the pin status |