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

Example file for ERM19264_UC1609 library, showing use of mulitple screens(four) sharing one buffer. To save data. 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 QUARTERSCREEN   ((MYLCDWIDTH * (MYLCDHEIGHT/8))/4)
 

Functions

void setup ()
 
void loop ()
 

Variables

uint8_t fourthScreenBuffer [QUARTERSCREEN]
 
ERM19264_UC1609 mylcd (MYLCDWIDTH, MYLCDHEIGHT, CD, RST, CS)
 
ERM19264_UC1609_Screen topLeftSideScreen (fourthScreenBuffer, MYLCDWIDTH/2, MYLCDHEIGHT/2, 0, 0)
 
ERM19264_UC1609_Screen topRightSideScreen (fourthScreenBuffer, MYLCDWIDTH/2, MYLCDHEIGHT/2, MYLCDWIDTH/2, 0)
 
ERM19264_UC1609_Screen botLeftSideScreen (fourthScreenBuffer, MYLCDWIDTH/2, MYLCDHEIGHT/2, 0, MYLCDHEIGHT/2)
 
ERM19264_UC1609_Screen botRightSideScreen (fourthScreenBuffer, MYLCDWIDTH/2, MYLCDHEIGHT/2, MYLCDWIDTH/2, MYLCDHEIGHT/2)
 

Detailed Description

Example file for ERM19264_UC1609 library, showing use of mulitple screens(four) sharing one buffer. To save data.

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. 503 Shared buffer two , Multiple screens (4 off) spilt into top left, top right, bottom left, bottom right, sharing one buffer