#include <TM1638QYF.h>
|
| | TM1638QYF (byte dataPin, byte clockPin, byte strobePin, boolean activateDisplay=true, byte intensity=7) |
| |
| void | setDisplayToHexNumber (unsigned long number, byte dots, boolean leadingZeros=true, const byte numberFont[]=FONT_DEFAULT) |
| |
| void | setDisplayToDecNumber (unsigned long number, byte dots, boolean leadingZeros=true, const byte numberFont[]=FONT_DEFAULT) |
| |
| void | setDisplayToSignedDecNumber (signed long number, byte dots, boolean leadingZeros=true, const byte numberFont[]=FONT_DEFAULT) |
| |
| void | setDisplayToBinNumber (byte number, byte dots, const byte numberFont[]=NUMBER_FONT) |
| |
| virtual void | clearDisplay () |
| |
| virtual void | setDisplayToString (const char *string, const word dots=0, const byte pos=0, const byte font[]=FONT_DEFAULT) |
| |
| virtual void | setDisplayToString (String string, const word dots=0, const byte pos=0, const byte font[]=FONT_DEFAULT) |
| |
| virtual word | getButtons () |
| |
| | TM16XX (byte dataPin, byte clockPin, byte strobePin, byte displays, boolean activateDisplay=true, byte intensity=7) |
| |
| virtual void | setupDisplay (boolean active, byte intensity) |
| |
| virtual void | setDisplayToError () |
| |
|
| virtual void | setDisplay (const byte values[], unsigned int length=8) |
| |
| virtual void | sendCommand (byte led) |
| |
| virtual void | sendData (byte add, byte data) |
| |
| virtual void | send (byte data) |
| |
| virtual byte | receive () |
| |
◆ TM1638QYF()
| TM1638QYF::TM1638QYF |
( |
byte |
dataPin, |
|
|
byte |
clockPin, |
|
|
byte |
strobePin, |
|
|
boolean |
activateDisplay = true, |
|
|
byte |
intensity = 7 |
|
) |
| |
Instantiate a tm1638 module specifying the display state, the starting intensity (0-7) data, clock and stobe pins.
◆ clearDisplay()
| void TM1638QYF::clearDisplay |
( |
| ) |
|
|
virtual |
Clear the display
Reimplemented from TM16XX.
◆ getButtons()
| word TM1638QYF::getButtons |
( |
void |
| ) |
|
|
virtual |
Returns the pressed buttons as a bit set (left to right).
◆ setDisplay()
| void TM1638QYF::setDisplay |
( |
const byte |
values[], |
|
|
unsigned int |
length = 8 |
|
) |
| |
|
protectedvirtual |
Set the display to the values (left to right)
Reimplemented from TM16XX.
◆ setDisplayToBinNumber()
| void TM1638QYF::setDisplayToBinNumber |
( |
byte |
number, |
|
|
byte |
dots, |
|
|
const byte |
numberFont[] = NUMBER_FONT |
|
) |
| |
Set the display to a unsigned binary number
◆ setDisplayToDecNumber()
| void TM1638QYF::setDisplayToDecNumber |
( |
unsigned long |
number, |
|
|
byte |
dots, |
|
|
boolean |
leadingZeros = true, |
|
|
const byte |
numberFont[] = FONT_DEFAULT |
|
) |
| |
Set the display to a unsigned decimal number (with or without leading zeros)
◆ setDisplayToHexNumber()
| void TM1638QYF::setDisplayToHexNumber |
( |
unsigned long |
number, |
|
|
byte |
dots, |
|
|
boolean |
leadingZeros = true, |
|
|
const byte |
numberFont[] = FONT_DEFAULT |
|
) |
| |
Set the display to a unsigned hexadecimal number (with or without leading zeros)
◆ setDisplayToSignedDecNumber()
| void TM1638QYF::setDisplayToSignedDecNumber |
( |
signed long |
number, |
|
|
byte |
dots, |
|
|
boolean |
leadingZeros = true, |
|
|
const byte |
numberFont[] = FONT_DEFAULT |
|
) |
| |
Set the display to a signed decimal number (with or without leading zeros)
◆ setDisplayToString() [1/2]
| void TM1638QYF::setDisplayToString |
( |
const char * |
string, |
|
|
const word |
dots = 0, |
|
|
const byte |
pos = 0, |
|
|
const byte |
font[] = FONT_DEFAULT |
|
) |
| |
|
virtual |
Set the display to the String (defaults to built in font) - pos is ignored in common anode
Reimplemented from TM16XX.
◆ setDisplayToString() [2/2]
| void TM1638QYF::setDisplayToString |
( |
String |
string, |
|
|
const word |
dots = 0, |
|
|
const byte |
pos = 0, |
|
|
const byte |
font[] = FONT_DEFAULT |
|
) |
| |
|
virtual |
Set the display to the String (defaults to built in font) - pos is ignored in common anode
Reimplemented from TM16XX.
The documentation for this class was generated from the following files: