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

Example file for ERM19264_UC1609 library, showing how to display bitmaps. 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 FULLSCREEN   (MYLCDWIDTH * (MYLCDHEIGHT/8))
 

Functions

void setup ()
 
void loop ()
 
void ErrorChecking (void)
 

Variables

uint8_t fullScreenBuffer [FULLSCREEN]
 
const PROGMEM uint8_t Bat816 [16]
 
const uint8_t SignalIcon [16]
 
const PROGMEM uint8_t lightingImage [252]
 
const PROGMEM uint8_t SunTextImage [80]
 
ERM19264_UC1609 mylcd (MYLCDWIDTH, MYLCDHEIGHT, CD, RST, CS)
 
ERM19264_UC1609_Screen fullScreen (fullScreenBuffer, MYLCDWIDTH, MYLCDHEIGHT, 0, 0)
 

Detailed Description

Example file for ERM19264_UC1609 library, showing how to display bitmaps.

Author
Gavin Lyons
test no Desc bitmap in PROGMEM data addressing note
1 LCDBitmap() Yes Vertical buffer not used, writes directly to screen.
2 Screen init test No Vertical Can be used when initialising screen at start up
3 LCDBuffer() No Vertical used internally mostly.
4A drawBitmap() Yes Vertical setDrawBitmapAddr(true)
4B drawBitmap() Yes Horizontal setDrawBitmapAddr(false)
Note
  1. GPIO is for arduino UNO for other tested MCU see extras folder at URL
  2. This is for hardware SPI
  3. https://github.com/gavinlyonsrepo/ERM19264_UC1609
Test:
  1. Test 401 LCDBitmap method
  2. Test 402 Bitmap splashscreen technique
  3. Test 403 LCDBuffer Method
  4. Test 404 drawBitmap() method, Vertical addressing
  5. Test 405 drawBitmap() method, Horizontal addressing
  6. Test 406 Error checking

Variable Documentation

◆ Bat816

const PROGMEM uint8_t Bat816[16]
Initial value:
=
{
0x00, 0x00, 0x7e, 0x42, 0x81, 0xbd, 0xbd, 0x81, 0xbd, 0xbd, 0x81, 0xbd, 0xbd, 0x81, 0xff, 0x00
}

◆ lightingImage

const PROGMEM uint8_t lightingImage[252]
Initial value:
= {
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0x7f, 0x7f, 0x3f, 0x3f, 0x1f, 0x0f, 0x0f, 0x07, 0x87, 0xc3, 0xe3, 0xf9, 0xfd, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x7f, 0x3f, 0x3f, 0x1f, 0x0f,
0x0f, 0x07, 0x87, 0xc3, 0xe3, 0xf9, 0xfd, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfb, 0xfb,
0xf1, 0xf1, 0xf0, 0xf0, 0xe0, 0xe0, 0x60, 0x20, 0x00, 0x00, 0x04, 0x06, 0x07, 0x07, 0x0f, 0x0f,
0x8f, 0x8f, 0xdf, 0xdf, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfb, 0xfb, 0xf1, 0xf1, 0xf0, 0xf0, 0xe0, 0xe0,
0x60, 0x20, 0x00, 0x00, 0x04, 0x06, 0x07, 0x07, 0x0f, 0x0f, 0x8f, 0x8f, 0xdf, 0xdf, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xbf, 0x9f, 0xc7, 0xc3, 0xe1, 0xe0, 0xf0, 0xf0, 0xf8, 0xfc, 0xfc,
0xfe, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xbf,
0x9f, 0xc7, 0xc3, 0xe1, 0xe0, 0xf0, 0xf0, 0xf8, 0xfc, 0xfc, 0xfe, 0xfe, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff}

◆ SignalIcon

const uint8_t SignalIcon[16]
Initial value:
= {
0x03, 0x05, 0x09, 0xff, 0x09, 0x05, 0xf3, 0x00, 0xf8, 0x00, 0xfc, 0x00, 0xfe, 0x00, 0xff, 0x00
}

◆ SunTextImage

const PROGMEM uint8_t SunTextImage[80]
Initial value:
={
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3F, 0xF1, 0x81, 0x8F, 0xFC, 0x3F,
0xF1, 0x81, 0x8F, 0xFC, 0x30, 0x31, 0x81, 0x8C, 0x0C, 0x30, 0x01, 0x81, 0x8C, 0x0C, 0x30, 0x01,
0x81, 0x8C, 0x0C, 0x3F, 0xF1, 0x81, 0x8C, 0x0C, 0x3F, 0xF1, 0x81, 0x8C, 0x0C, 0x00, 0x31, 0x81,
0x8C, 0x0C, 0x00, 0x31, 0x81, 0x8C, 0x0C, 0x30, 0x31, 0x81, 0x8C, 0x0C, 0x3F, 0xF1, 0xFF, 0x8C,
0x0C, 0x3F, 0xF1, 0xFF, 0x8C, 0x0C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}