Based on existing AVR C project
Tested with 3.3v on ESP8266 and works fine
No buffering
Try to use hardware reset if you sometimes got only white screen at powering on
# | Name | Function |
1 | RS | Low=CMD, High=DATA |
2 | ~RST | Reset input, active low |
3 | ~CS | SPI chip select, active low |
4 | SYNC | External frame synchorization input, unused by default |
5 | CLK | SPI Clock-in signal (High-to-Low) |
6 | DATA | SPI Data-in signal (MSB first) |
7 | VCC | Power supply, normally 2.9V (OK with 3.3V) |
8 | GND | Ground |
9 | LED+ | Backlight voltage, approx. 12V (depends on required current) |
10 | LED- | Backlight common pin |
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);
}