SegLCDLib
Loading...
Searching...
No Matches
SegDriver_VK0192.h
Go to the documentation of this file.
1#ifndef SEGDRIVER_VK0192_H
2#define SEGDRIVER_VK0192_H
3
4#include "SegDriver_3Wire.h"
5
13 #define MAX_HW_ADDRESS 47
14 #define MAX_ADDRESS 47
15
16 // VK0192 specific commands (not in base class)
17 #define CMD_RC_32K 0b00011000
18 #define CMD_EXT_32K 0b00011100
19
20 public:
29 SegDriver_VK0192(uint8_t chipselect, uint8_t data, uint8_t write, uint8_t read = -1);
30
31 void clear() override;
32
42 void flush(uint8_t startAddr, uint8_t length) override;
43 using SegLCDLib::flush; // Inherit base flush() without parameters
44
45 protected:
49 void _writeRam(uint8_t data, uint8_t address = 0);
50 void _writeRam(uint8_t *data, size_t length, uint8_t address = 0) override;
51
55 void _sendBits(uint16_t data, uint8_t bitCount = 8) override;
56};
57
58#endif
Base class for 3-wire serial LCD segment display drivers.
Definition SegDriver_3Wire.h:12
VK0192 LCD segment display driver.
Definition SegDriver_VK0192.h:12
virtual void flush()
Flush all buffered changes to the display.
Definition SegLCDLib.cpp:332
void _writeRam(uint8_t data, uint8_t address=0)
Override _writeRam to implement VK0192-specific timing requirements.
Definition SegDriver_VK0192.cpp:18
void clear() override
Clear all visible segments on the display.
Definition SegDriver_VK0192.cpp:10
void _sendBits(uint16_t data, uint8_t bitCount=8) override
Override _sendBits to implement VK0192-specific timing requirements.
Definition SegDriver_VK0192.cpp:43
virtual void flush()
Flush all buffered changes to the display.
Definition SegLCDLib.cpp:332
virtual size_t write(uint8_t ch)
Definition SegLCDLib.h:89