My Project
Public Member Functions | Protected Member Functions | List of all members
InvertedTM1638 Class Reference

#include <InvertedTM1638.h>

Inheritance diagram for InvertedTM1638:
TM1638 TM16XX

Public Member Functions

 InvertedTM1638 (byte dataPin, byte clockPin, byte strobePin, boolean activateDisplay=true, byte intensity=7)
 
virtual void setLED (byte color, byte pos)
 
virtual byte getButtons ()
 
- Public Member Functions inherited from TM1638
 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)
 
void setLEDs (word led)
 
- Public Member Functions inherited from TM16XX
 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)
 

Protected Member Functions

virtual void sendChar (byte pos, byte data, boolean dot)
 
- Protected Member Functions inherited from TM1638
void setDisplayToDecNumberAt (unsigned long number, byte dots, byte startingPos, boolean leadingZeros, const byte numberFont[])
 
- Protected Member Functions inherited from TM16XX
virtual void sendCommand (byte led)
 
virtual void sendData (byte add, byte data)
 
virtual void send (byte data)
 
virtual byte receive ()
 

Additional Inherited Members

- Protected Attributes inherited from TM16XX
byte displays
 
byte dataPin
 
byte clockPin
 
byte strobePin
 

Constructor & Destructor Documentation

◆ InvertedTM1638()

InvertedTM1638::InvertedTM1638 ( byte  dataPin,
byte  clockPin,
byte  strobePin,
boolean  activateDisplay = true,
byte  intensity = 7 
)

Instantiate an inverted tm1638 module specifying the display state, the starting intensity (0-7) data, clock and stobe pins.

Member Function Documentation

◆ getButtons()

byte InvertedTM1638::getButtons ( void  )
virtual

Returns the pressed buttons as a bit set (left to right).

Reimplemented from TM1638.

◆ sendChar()

void InvertedTM1638::sendChar ( byte  pos,
byte  data,
boolean  dot 
)
protectedvirtual

Reimplemented from TM1638.

◆ setLED()

void InvertedTM1638::setLED ( byte  color,
byte  pos 
)
virtual

Set the LED at pos to color (TM1638_COLOR_RED, TM1638_COLOR_GREEN or both)

Reimplemented from TM1638.


The documentation for this class was generated from the following files: