Skip to content

Latest commit

 

History

History
47 lines (35 loc) · 1.6 KB

File metadata and controls

47 lines (35 loc) · 1.6 KB

LPH9157-2 display arduino library

Based on existing AVR C project

Tested with 3.3v on ESP8266 and works fine

Known issues:

No buffering
Try to use hardware reset if you sometimes got only white screen at powering on

Display pinout:

display pinout

#NameFunction
1RSLow=CMD, High=DATA
2~RSTReset input, active low
3~CSSPI chip select, active low
4SYNCExternal frame synchorization input, unused by default
5CLKSPI Clock-in signal (High-to-Low)
6DATASPI Data-in signal (MSB first)
7VCCPower supply, normally 2.9V (OK with 3.3V)
8GNDGround
9LED+Backlight voltage, approx. 12V (depends on required current)
10LED-Backlight common pin

Minimal connection diagram:

connection diagram

Usage:

Specify LCD_RS pin (and optionally -- LCD_RESET) in LPH91572.h

#include "LPH91572.h"

void setup() {
  LCD_init();
  LCD_FillScreen (WHITE);
  
}
  
void loop() {
  LCD_Puts_Shadow("Hello!", 10, 60, GREEN,  2, 2, 90); 
  delay(50);
}