Synopsis
typedef struct {
  CTL_GFX_DRIVER_t core;
  CTL_SPI_DEVICE_t *dev;
  void (*set_dc_state)(int);
  void (*set_reset_state)(int);
  int needs_flush;
  unsigned char frame_buffer[];
} PCD8544_DRIVER_t;
Description

PCD8544_DRIVER_t is the class for driving the PCD8544 over an SPI bus.

Structure
core
The abstract graphics driver base class.
dev
The SPI device associated with this controller.
set_dc_state
Method to set the state of the D/C# signal for 8-bit SPI mode.
set_reset_state
Method to set the state of the RESET signal.
frame_buffer
The frame buffer maintained internally by the class. Because pixels are not individually addressable using the PCD8544 command set, this maintains the state of the display.
needs_flush
Indicates whether the internal frame buffer and LCD display differ, which is an indication that it is worthwhile flushing the display.