add missing files, support display blanking
This commit is contained in:
24
CL56.h
24
CL56.h
@ -6,15 +6,15 @@
|
||||
class DualCl56
|
||||
{
|
||||
public:
|
||||
|
||||
static constexpr uint8_t SEG_A = 0b10000000;
|
||||
static constexpr uint8_t SEG_B = 0b01000000;
|
||||
static constexpr uint8_t SEG_C = 0b00100000;
|
||||
static constexpr uint8_t SEG_D = 0b00010000;
|
||||
static constexpr uint8_t SEG_E = 0b00001000;
|
||||
static constexpr uint8_t SEG_F = 0b00000100;
|
||||
static constexpr uint8_t SEG_G = 0b00000010;
|
||||
static constexpr uint8_t SEG_DP= 0b00000001;
|
||||
|
||||
static constexpr uint8_t SEG_A = 0b10000000;
|
||||
static constexpr uint8_t SEG_B = 0b01000000;
|
||||
static constexpr uint8_t SEG_C = 0b00100000;
|
||||
static constexpr uint8_t SEG_D = 0b00010000;
|
||||
static constexpr uint8_t SEG_E = 0b00001000;
|
||||
static constexpr uint8_t SEG_F = 0b00000100;
|
||||
static constexpr uint8_t SEG_G = 0b00000010;
|
||||
static constexpr uint8_t SEG_DP= 0b00000001;
|
||||
|
||||
static constexpr uint8_t COLEN_A = 0b00000010;
|
||||
static constexpr uint8_t COLEN_B = 0b00100000;
|
||||
@ -71,14 +71,18 @@ class DualCl56
|
||||
uint8_t _segments[8] = {SEG_A, SEG_B, SEG_C, SEG_D, SEG_E, SEG_G, SEG_DP, FIVE};
|
||||
|
||||
ShiftReg<16>* _shiftReg;
|
||||
|
||||
bool _blank = false;
|
||||
|
||||
public:
|
||||
|
||||
DualCl56(ShiftReg<16>* shiftReg);
|
||||
|
||||
void tick();
|
||||
void setBlank(bool blank);
|
||||
bool getBlank();
|
||||
|
||||
void setString(const char* string, const uint8_t dp = 0);
|
||||
void setSegments(const uint8_t segments, const uint8_t place);
|
||||
void setSegments(const uint8_t segments, const uint8_t place);
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user