ERM19264_UC1609  1.8.0
Arduino Eco-system Library for ERM19264 LCD driven by UC1609 controller.
Macros | Functions | Variables
ERM19264_UC1609_MULTISCREEN.ino File Reference

Example file for ERM19264_UC1609 library, showing use of mulitple screens(two) sharing one buffer.
More...

#include <ERM19264_UC1609.h>

Macros

#define CD   10
 
#define RST   9
 
#define CS   8
 
#define LCDCONTRAST   0x49
 
#define LCDRAMADDRCTRL   0x02
 
#define MYLCDHEIGHT   64
 
#define MYLCDWIDTH   192
 
#define HALFSCREEN   ((MYLCDWIDTH * (MYLCDHEIGHT/8))/2)
 

Functions

void setup ()
 
void loop ()
 
void display_Left (long currentFramerate, int count)
 
void display_Right ()
 

Variables

uint8_t halfScreenBuffer [HALFSCREEN]
 
ERM19264_UC1609 mylcd (MYLCDWIDTH, MYLCDHEIGHT, CD, RST, CS)
 
ERM19264_UC1609_Screen leftSideScreen (halfScreenBuffer, MYLCDWIDTH/2, MYLCDHEIGHT, 0, 0)
 
ERM19264_UC1609_Screen rightSideScreen (halfScreenBuffer, MYLCDWIDTH/2, MYLCDHEIGHT, MYLCDWIDTH/2, 0)
 
uint16_t count = 0
 
uint16_t seconds = 0
 
bool colour = false
 

Detailed Description

Example file for ERM19264_UC1609 library, showing use of mulitple screens(two) sharing one buffer.

Author
Gavin Lyons
Note
  1. GPIO is for arduino UNO for other tested MCU see readme.
  2. This is for hardware SPI for software SPI see ERM19264_UC1609_SWSPI.ino example. https://github.com/gavinlyonsrepo/ERM19264_UC1609
Test:
  1. 501 Shared buffer, Multiple screens (2 off) spilt into left and right , sharing one buffer
  2. 502 FPS test frame per second