TM1637 class.
More...
#include <ErriezTM1637.h>
|
|
uint8_t | _clkPin |
| | Clock pin.
|
| |
|
uint8_t | _dioPin |
| | Data pin.
|
| |
|
bool | _displayOn |
| | Display on and off status for display control register.
|
| |
|
uint8_t | _brightness |
| | Display brightness for display control register.
|
| |
TM1637 class.
Definition at line 141 of file ErriezTM1637.h.
◆ TM1637()
| TM1637::TM1637 |
( |
uint8_t |
clkPin, |
|
|
uint8_t |
dioPin, |
|
|
bool |
displayOn = true, |
|
|
uint8_t |
brightness = 5 |
|
) |
| |
TM1637 constructor.
Constructor with pin arguments: C-D (Clock, Data)
- Parameters
-
| clkPin | TM1637 CLK pin. |
| dioPin | TM1637 DIO pin. |
| displayOn | true: Turn display on (default) false: Turn display off |
| brightness | Display brightness value 0..7 |
Definition at line 49 of file ErriezTM1637.cpp.
◆ getKeys()
| uint8_t TM1637::getKeys |
( |
| ) |
|
|
virtual |
Get key states.
- Returns
- 0xFF: All keys up 0x00..0x0F: Key 0..15 down
Definition at line 191 of file ErriezTM1637.cpp.
◆ readByte()
| uint8_t TM1637::readByte |
( |
| ) |
|
|
protectedvirtual |
◆ setBrightness()
| void TM1637::setBrightness |
( |
uint8_t |
brightness | ) |
|
|
virtual |
Set brightness LED's.
- Parameters
-
| brightness | Display brightness value 0..7 |
Definition at line 124 of file ErriezTM1637.cpp.
◆ writeByte()
| void TM1637::writeByte |
( |
uint8_t |
data | ) |
|
|
protectedvirtual |
◆ writeData() [1/2]
| void TM1637::writeData |
( |
uint8_t |
address, |
|
|
uint8_t |
data |
|
) |
| |
|
virtual |
Write display register.
- Parameters
-
| address | Display address 0x00..0x05 |
| data | Value 0x00..0xFF |
Definition at line 151 of file ErriezTM1637.cpp.
◆ writeData() [2/2]
| void TM1637::writeData |
( |
uint8_t |
address, |
|
|
const uint8_t * |
buf, |
|
|
uint8_t |
len |
|
) |
| |
|
virtual |
Write buffer to multiple display registers.
Write buffer to TM1638 with auto address increment
- Parameters
-
| address | Display address 0x00..0x05 |
| buf | Buffer |
| len | Buffer length |
Definition at line 172 of file ErriezTM1637.cpp.
The documentation for this class was generated from the following files: