SegLCDLib
Loading...
Searching...
No Matches
SegDriver_PCF85176.h
Go to the documentation of this file.
1#ifndef SEGDRIVER_PCF85176_H
2#define SEGDRIVER_PCF85176_H
3
4#include <SegDriver_PCx85.h>
5
10 protected:
11 static constexpr uint8_t MAX_ADDRESS = 39;
12 static constexpr uint8_t CMD_LAST_COMMAND = 0x80;
13
14 public:
22 SegDriver_PCF85176(SegTransportI2C& transport, uint8_t address = DEFAULT_PCX85_I2C_ADDRESS, uint8_t subaddress = DEFAULT_SUBADDRESS) : SegDriver_PCx85(transport, address, subaddress) {}
23
24 protected:
26 void _sendCommand(uint8_t command, bool last = true) override;
27 void _writeRam(uint8_t *data, size_t length, uint8_t address = 0) override;
28};
29
30#endif
Implementation of the PCF85176 controllers.
Definition SegDriver_PCF85176.h:9
static constexpr uint8_t MAX_ADDRESS
Definition SegDriver_PCF85176.h:11
void _writeRam(uint8_t *data, size_t length, uint8_t address=0) override
Low-level method to write a data buffer to display RAM.
Definition SegDriver_PCF85176.cpp:16
void _sendCommand(uint8_t command, bool last=true) override
Definition SegDriver_PCF85176.cpp:8
static constexpr uint8_t CMD_LAST_COMMAND
Definition SegDriver_PCF85176.h:12
SegDriver_PCF85176(SegTransportI2C &transport, uint8_t address=DEFAULT_PCX85_I2C_ADDRESS, uint8_t subaddress=DEFAULT_SUBADDRESS)
Constructor for PCF85176 segment driver.
Definition SegDriver_PCF85176.h:22
Base class for PCx85 LCD segment display drivers.
Definition SegDriver_PCx85.h:12
void command(uint8_t command) override
Send RAW command to controller.
Definition SegDriver_PCx85.cpp:30
static constexpr uint8_t DEFAULT_PCX85_I2C_ADDRESS
Definition SegDriver_PCx85.h:18
static constexpr uint8_t DEFAULT_SUBADDRESS
Definition SegDriver_PCx85.h:19
void _writeRam(uint8_t data, uint8_t address=0)
Low-level method to write a single byte to display RAM.
Definition SegLCDLib.cpp:389
Abstract I2C transport.
Definition SegTransport.h:54