TM1638_plus  2.0.0
Arduino library for Tm1638 modules
Classes | Macros | Enumerations | Variables
TM1638plus_common.h File Reference

Arduino library Tm1638plus, Header file for common data and functions between model classes. More...

#include "WProgram.h"
Include dependency graph for TM1638plus_common.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  TM1638plus_common
 The base Class , used to store common data & functions for all models types. More...
 

Macros

#define TM_ACTIVATE   0x8F
 
#define TM_BUTTONS_MODE   0x42
 
#define TM_WRITE_LOC   0x44
 
#define TM_WRITE_INC   0x40
 
#define TM_SEG_ADR   0xC0
 
#define TM_LEDS_ADR   0xC1
 
#define TM_BRIGHT_ADR   0x88
 
#define TM_BRIGHT_MASK   0x07
 
#define TM_DEFAULT_BRIGHTNESS   0x02
 
#define TM_DISPLAY_SIZE   8
 
#define TM_ASCII_OFFSET   32
 
#define TM_HEX_OFFSET   16
 
#define TM_DOT_MASK_DEC   128
 
#define TM_RED_LED   0x02
 
#define TM_GREEN_LED   0x01
 
#define TM_OFF_LED   0x00
 
#define TM_HFIN_DELAY   1
 
#define TM_HFOUT_DELAY   1
 

Enumerations

enum  AlignTextType_e : uint8_t { TMAlignTextRight = 1 , TMAlignTextLeft = 2 }
 

Variables

const unsigned char * pFontSevenSegptr
 

Detailed Description

Arduino library Tm1638plus, Header file for common data and functions between model classes.

Author
Gavin Lyons
Note
See URL for full details. https://github.com/gavinlyonsrepo/TM1638plus

Macro Definition Documentation

◆ TM_ACTIVATE

#define TM_ACTIVATE   0x8F

Start up device

◆ TM_ASCII_OFFSET

#define TM_ASCII_OFFSET   32

ASCII table offset to jump over first missing 32 chars

◆ TM_BRIGHT_ADR

#define TM_BRIGHT_ADR   0x88

Brightness address

◆ TM_BRIGHT_MASK

#define TM_BRIGHT_MASK   0x07

Brightness mask

◆ TM_BUTTONS_MODE

#define TM_BUTTONS_MODE   0x42

Buttons mode

◆ TM_DEFAULT_BRIGHTNESS

#define TM_DEFAULT_BRIGHTNESS   0x02

Brightness can be 0x00 to 0x07 , 0x00 is least bright

◆ TM_DISPLAY_SIZE

#define TM_DISPLAY_SIZE   8

Size of display in digits

◆ TM_DOT_MASK_DEC

#define TM_DOT_MASK_DEC   128

0x80 Mask to switch on decimal point in seven segement

◆ TM_GREEN_LED

#define TM_GREEN_LED   0x01

Turn LED green color Model 3 only

◆ TM_HEX_OFFSET

#define TM_HEX_OFFSET   16

ASCII table offset to reach the number position

◆ TM_HFIN_DELAY

#define TM_HFIN_DELAY   1

uS Delay used by shiftIn function for High-freq MCU

◆ TM_HFOUT_DELAY

#define TM_HFOUT_DELAY   1

uS Delay used by shiftOut function for High-freq MCU

◆ TM_LEDS_ADR

#define TM_LEDS_ADR   0xC1

Leftmost LED address C1 C3 C5 C7 C9 CB CD CF

◆ TM_OFF_LED

#define TM_OFF_LED   0x00

Switch off LED

◆ TM_RED_LED

#define TM_RED_LED   0x02

Turn LED red color Model 3 only

◆ TM_SEG_ADR

#define TM_SEG_ADR   0xC0

leftmost segment Address C0 C2 C4 C6 C8 CA CC CE

◆ TM_WRITE_INC

#define TM_WRITE_INC   0x40

Incremental write

◆ TM_WRITE_LOC

#define TM_WRITE_LOC   0x44

Write to a memory location

Enumeration Type Documentation

◆ AlignTextType_e

enum AlignTextType_e : uint8_t

Alignment of text on display

Enumerator
TMAlignTextRight 

Align text to the right on display

TMAlignTextLeft 

Align text to the left on display

Variable Documentation

◆ pFontSevenSegptr

const unsigned char* pFontSevenSegptr
extern

Pointer to the seven segment font data table