Serial Wombat 18AB Firmware
Public Attributes | List of all members
tm1637_n Struct Reference

Public Attributes

uint8_t outputBuffer [6]
 Used to hold user data for output. Can be raw data, characters, pin to draw data from, or animation parameters based on mode. More...
 
uint8_t displayOrder [6]
 Used to reorder rendered bytes into displayArray. More...
 
uint8_t displayArray [6]
 Final rendered, ordered bitmap that is sent to the TM1637. More...
 
uint8_t lastDisplay [6]
 Compared with displayArray to see which bytes need updated. More...
 
uint16_t idleCounter
 Counter that is counted down to delay between updates. More...
 
uint8_t outputState
 Used for the byte-by-byte transfer state machine. More...
 
uint8_t dioPin
 The second pin used by this pin mode. More...
 
uint8_t decimalPointBitmap
 Least significant is first digit's decimal. More...
 
uint8_t blinkBitmap
 Digits to blink at 2Hz Least significant is first digit's decimal. More...
 
uint8_t lastDigit:4
 The last digit to send. More...
 
uint8_t brightness:4
 
uint8_t lastBrightness:4
 
uint8_t mode:4
 See type TM1637_MODE_t. More...
 
uint8_t suppressLeadingZeros:1
 

Member Data Documentation

◆ blinkBitmap

uint8_t tm1637_n::blinkBitmap

Digits to blink at 2Hz Least significant is first digit's decimal.

◆ brightness

uint8_t tm1637_n::brightness

◆ decimalPointBitmap

uint8_t tm1637_n::decimalPointBitmap

Least significant is first digit's decimal.

◆ dioPin

uint8_t tm1637_n::dioPin

The second pin used by this pin mode.

◆ displayArray

uint8_t tm1637_n::displayArray[6]

Final rendered, ordered bitmap that is sent to the TM1637.

◆ displayOrder

uint8_t tm1637_n::displayOrder[6]

Used to reorder rendered bytes into displayArray.

◆ idleCounter

uint16_t tm1637_n::idleCounter

Counter that is counted down to delay between updates.

◆ lastBrightness

uint8_t tm1637_n::lastBrightness

◆ lastDigit

uint8_t tm1637_n::lastDigit

The last digit to send.

◆ lastDisplay

uint8_t tm1637_n::lastDisplay[6]

Compared with displayArray to see which bytes need updated.

◆ mode

uint8_t tm1637_n::mode

See type TM1637_MODE_t.

◆ outputBuffer

uint8_t tm1637_n::outputBuffer[6]

Used to hold user data for output. Can be raw data, characters, pin to draw data from, or animation parameters based on mode.

◆ outputState

uint8_t tm1637_n::outputState

Used for the byte-by-byte transfer state machine.

◆ suppressLeadingZeros

uint8_t tm1637_n::suppressLeadingZeros