Difference between revisions of "Graphic LCD 128x64 STN LED"
From Geeetech Wiki
(→usage) |
|||
Line 25: | Line 25: | ||
[[File:12864 usage.jpg]] | [[File:12864 usage.jpg]] | ||
+ | |||
+ | Download the u8glib library and extract it to arduino library,open arduino IDE File - Examples - U8glib -HelloWorld and run this demo. | ||
+ | Commmet the declaration statement appropriate to the controller KS0108. | ||
+ | |||
+ | U8GLIB_KS0108_128 u8g(8, 9, 10, 11, 4, 5, 6, 7, 18, 14, 15, 17, 16); | ||
==Example code== | ==Example code== |
Revision as of 09:38, 21 May 2012
Contents
Introduction
JHD12864E is a 128X64 graphical LCD with backlight. This unit is a very clear STN type LCD with a simple command interface. Utilizes the extremely common KS0108B parallel interface chipset. Interface code is freely available.
Description
- Display construction:128*64 DOTS
- Controller: KS0108
- Number of data line:8-bit parallel
- Display mode:STN / Yellow Green
- Display type:Positive Tranflective
- Backlight:LED(Y/G)/5.0V
- Driving method:1/64 duty, 1/9 bias
- Type:COB (Chip On Board)
Document
12864 lcd datasheet:http://www.geeetech.com/Documents/JHD12864E%20Documents[1].pdf
pin definition
usage
Download the u8glib library and extract it to arduino library,open arduino IDE File - Examples - U8glib -HelloWorld and run this demo. Commmet the declaration statement appropriate to the controller KS0108.
U8GLIB_KS0108_128 u8g(8, 9, 10, 11, 4, 5, 6, 7, 18, 14, 15, 17, 16);
Example code
#include "U8glib.h" U8GLIB_KS0108_128 u8g(8, 9, 10, 11, 4, 5, 6, 7, 18, 14, 15, 17, 16); //8Bit Com: D0..D7: 8,9,10,11,4,5,6,7 en=18, cs1=14, cs2=15,di=17,rw=16 void draw(void) { u8g.setFont(u8g_font_unifont); u8g.setPrintPos(0, 20); u8g.print("Hello World!"); } void setup(void) {} void loop(void) { u8g.firstPage(); do { draw(); } while( u8g.nextPage() ); delay(500); }
How to buy
Click here to buy Graphic LCD 128x64 STN LED