1#ifndef SEGDRIVER_3WIRE_H
2#define SEGDRIVER_3WIRE_H
16 #define OP_WRITE 0b101
17 #define OP_RD_MOD_WR 0b101
20 #define CMD_SYS_DIS 0b00000000
21 #define CMD_SYS_EN 0b00000001
22 #define CMD_LCD_OFF 0b00000010
23 #define CMD_LCD_ON 0b00000011
24 #define CMD_TMR_DIS 0b00000100
25 #define CMD_WDT_DIS 0b00000101
26 #define CMD_TMR_EN 0b00000110
27 #define CMD_WDT_EN 0b00000111
28 #define CMD_CLR_TMR 0b00001100
29 #define CMD_CLR_WDT 0b00001110
32 #define CMD_IRQ_DIS 0b10000000
33 #define CMD_IRQ_EN 0b10001000
36 #define CMD_F1 0b10100000
37 #define CMD_F2 0b10100001
38 #define CMD_F4 0b10100010
39 #define CMD_F8 0b10100011
40 #define CMD_F16 0b10100100
41 #define CMD_F32 0b10100101
42 #define CMD_F64 0b10100110
43 #define CMD_F128 0b10100111
46 #define CMD_TEST 0b11100000
47 #define CMD_NORMAL 0b11100011
96 void _writeRam(uint8_t data, uint8_t address);
105 virtual void _writeRam(uint8_t *data,
size_t length, uint8_t address);
116 virtual void _sendBits(uint16_t data, uint8_t bitCount = 8);
Base class for segment LCD display drivers.
Base class for 3-wire serial LCD segment display drivers.
Definition SegDriver_3Wire.h:12
void init() override
Initialize GPIO pins for communication.
Definition SegDriver_3Wire.cpp:11
void off() override
Turn the display off.
Definition SegDriver_3Wire.cpp:28
void on() override
Turn the display on.
Definition SegDriver_3Wire.cpp:23
void command(uint8_t command) override
Send command to the controller.
Definition SegDriver_3Wire.cpp:33
uint8_t _data
Data pin for the display.
Definition SegDriver_3Wire.h:85
uint8_t _cs
Chip select pin for the display.
Definition SegDriver_3Wire.h:86
void _writeRam(uint8_t data, uint8_t address)
Write single byte to RAM at specified address.
Definition SegDriver_3Wire.cpp:48
uint8_t _wr
Write clock pin for the display.
Definition SegDriver_3Wire.h:83
uint8_t _maxAddress
Maximum address for this controller.
Definition SegDriver_3Wire.h:88
virtual void _sendBits(uint16_t data, uint8_t bitCount=8)
Send bits to the controller.
Definition SegDriver_3Wire.cpp:71
uint8_t _rd
Read clock pin for the display.
Definition SegDriver_3Wire.h:84
Abstract base class for LCD segment display drivers.
Definition SegLCDLib.h:36
virtual size_t write(uint8_t ch)
Definition SegLCDLib.h:89