Graphic LCD 128x64 STN LED

From Geeetech Wiki
Revision as of 01:14, 18 November 2014 by Admin (talk | contribs) (usage)

Jump to: navigation, search

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 library

12864 lcd datasheet:http://www.geeetech.com/Documents/JHD12864E%20Documents[1].pdf

pin definition

12864 pin.jpg

Connection example

12864 2.jpg

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

#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