Difference between revisions of "Graphic LCD 128x64 STN LED"
From Geeetech Wiki
(→Document) |
|||
(9 intermediate revisions by the same user not shown) | |||
Line 15: | Line 15: | ||
==Document== | ==Document== | ||
[http://www.geeetech.com/Documents/12864%20libray.zip 12864 LCD library] | [http://www.geeetech.com/Documents/12864%20libray.zip 12864 LCD library] | ||
− | [http://www.geeetech.com/ | + | |
+ | 12864 lcd datasheet:[http://www.geeetech.com/wiki/images/f/f4/Graphics_LCD_12864E_Datasheet.pdf Graphics LCD 12864E Datasheet.pdf] | ||
==pin definition== | ==pin definition== | ||
[[File:12864 pin.jpg]] | [[File:12864 pin.jpg]] | ||
− | == | + | ==Connection example== |
[[File:12864 2.jpg|500px]] | [[File:12864 2.jpg|500px]] | ||
+ | |||
[[File:12864 usage.jpg]] | [[File:12864 usage.jpg]] | ||
+ | |||
+ | Download the [http://www.geeetech.com/Documents/12864%20libray.zip u8glib library] and extract it to arduino library,open arduino IDE File - Examples - U8glib -HelloWorld and run this demo.<br> | ||
+ | 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== |
Latest revision as of 02:18, 18 November 2014
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:Graphics LCD 12864E Datasheet.pdf
pin definition
Connection example
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