#include <TM1638.h>
|
| | TM1638 (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[]=NUMBER_FONT) |
| |
| void | setDisplayToDecNumber (unsigned long number, byte dots, boolean leadingZeros=true, const byte numberFont[]=NUMBER_FONT) |
| |
| void | setDisplayToSignedDecNumber (signed long number, byte dots, boolean leadingZeros=true, const byte numberFont[]=NUMBER_FONT) |
| |
| void | setDisplayToBinNumber (byte number, byte dots, const byte numberFont[]=NUMBER_FONT) |
| |
| virtual void | setLED (byte color, byte pos) |
| |
| void | setLEDs (word led) |
| |
| virtual byte | 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 | setDisplayDigit (byte digit, byte pos, boolean dot, const byte numberFont[]=NUMBER_FONT) |
| |
| virtual void | setDisplayToError () |
| |
| virtual void | clearDisplayDigit (byte pos, boolean dot) |
| |
| virtual void | setDisplay (const byte values[], unsigned int length=8) |
| |
| 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 void | sendChar (byte pos, byte data, boolean dot) |
| |
| void | setDisplayToDecNumberAt (unsigned long number, byte dots, byte startingPos, boolean leadingZeros, const byte numberFont[]) |
| |
| virtual void | sendCommand (byte led) |
| |
| virtual void | sendData (byte add, byte data) |
| |
| virtual void | send (byte data) |
| |
| virtual byte | receive () |
| |
◆ TM1638()
| TM1638::TM1638 |
( |
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.
◆ getButtons()
| byte TM1638::getButtons |
( |
void |
| ) |
|
|
virtual |
Returns the pressed buttons as a bit set (left to right).
Reimplemented in InvertedTM1638.
◆ sendChar()
| void TM1638::sendChar |
( |
byte |
pos, |
|
|
byte |
data, |
|
|
boolean |
dot |
|
) |
| |
|
protectedvirtual |
◆ setDisplayToBinNumber()
| void TM1638::setDisplayToBinNumber |
( |
byte |
number, |
|
|
byte |
dots, |
|
|
const byte |
numberFont[] = NUMBER_FONT |
|
) |
| |
Set the display to a unsigned binary number
◆ setDisplayToDecNumber()
| void TM1638::setDisplayToDecNumber |
( |
unsigned long |
number, |
|
|
byte |
dots, |
|
|
boolean |
leadingZeros = true, |
|
|
const byte |
numberFont[] = NUMBER_FONT |
|
) |
| |
Set the display to a unsigned decimal number (with or without leading zeros)
◆ setDisplayToDecNumberAt()
| void TM1638::setDisplayToDecNumberAt |
( |
unsigned long |
number, |
|
|
byte |
dots, |
|
|
byte |
startingPos, |
|
|
boolean |
leadingZeros, |
|
|
const byte |
numberFont[] |
|
) |
| |
|
protected |
◆ setDisplayToHexNumber()
| void TM1638::setDisplayToHexNumber |
( |
unsigned long |
number, |
|
|
byte |
dots, |
|
|
boolean |
leadingZeros = true, |
|
|
const byte |
numberFont[] = NUMBER_FONT |
|
) |
| |
Set the display to a unsigned hexadecimal number (with or without leading zeros)
◆ setDisplayToSignedDecNumber()
| void TM1638::setDisplayToSignedDecNumber |
( |
signed long |
number, |
|
|
byte |
dots, |
|
|
boolean |
leadingZeros = true, |
|
|
const byte |
numberFont[] = NUMBER_FONT |
|
) |
| |
Set the display to a signed decimal number (with or without leading zeros)
◆ setLED()
| void TM1638::setLED |
( |
byte |
color, |
|
|
byte |
pos |
|
) |
| |
|
virtual |
Set the LED at pos to color (TM1638_COLOR_RED, TM1638_COLOR_GREEN or both)
Reimplemented in InvertedTM1638.
◆ setLEDs()
| void TM1638::setLEDs |
( |
word |
led | ) |
|
Set the LEDs. MSB byte for the green LEDs, LSB for the red LEDs
The documentation for this class was generated from the following files: