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

#include <TM1640.h>

Inheritance diagram for TM1640:
TM16XX

Public Member Functions

 TM1640 (byte dataPin, byte clockPin, boolean activateDisplay=true, byte intensity=7)
 
virtual void clearDisplay ()
 
- 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 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 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

◆ TM1640()

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

Instantiate a tm1640 module specifying the display state, the starting intensity (0-7) data and clock pins.

Member Function Documentation

◆ clearDisplay()

void TM1640::clearDisplay ( )
virtual

Clear the display

Reimplemented from TM16XX.

◆ sendChar()

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

Reimplemented from TM16XX.


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