123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- ===================================
- cfag12864b LCD Driver Documentation
- ===================================
- License: GPLv2
- Author & Maintainer: Miguel Ojeda Sandonis
- Date: 2006-10-27
- 0. INDEX
- 1. DRIVER INFORMATION
- 2. DEVICE INFORMATION
- 3. WIRING
- 4. USERSPACE PROGRAMMING
- 1. DRIVER INFORMATION
- This driver supports a cfag12864b LCD.
- 2. DEVICE INFORMATION
- Manufacturer: Crystalfontz
- Device Name: Crystalfontz 12864b LCD Series
- Device Code: cfag12864b
- Webpage: http://www.crystalfontz.com
- Device Webpage: http://www.crystalfontz.com/products/12864b/
- Type: LCD (Liquid Crystal Display)
- Width: 128
- Height: 64
- Colors: 2 (B/N)
- Controller: ks0108
- Controllers: 2
- Pages: 8 each controller
- Addresses: 64 each page
- Data size: 1 byte each address
- Memory size: 2 * 8 * 64 * 1 = 1024 bytes = 1 Kbyte
- 3. WIRING
- The cfag12864b LCD Series don't have official wiring.
- The common wiring is done to the parallel port as shown:
- Parallel Port cfag12864b
- Name Pin# Pin# Name
- Strobe ( 1)
- Data 0 ( 2)
- Data 1 ( 3)
- Data 2 ( 4)
- Data 3 ( 5)
- Data 4 ( 6)
- Data 5 ( 7)
- Data 6 ( 8)
- Data 7 ( 9)
- (10) [+5v]
- (11) [GND]
- (12) [+5v]
- (13) [GND]
- Line (14)
- (15)
- Init (16)
- Select (17)
- Ground (18)
- Ground (19)
- Ground (20)
- Ground (21)
- Ground (22)
- Ground (23)
- Ground (24)
- Ground (25)
- 4. USERSPACE PROGRAMMING
- The cfag12864bfb describes a framebuffer device (/dev/fbX).
- It has a size of 1024 bytes = 1 Kbyte.
- Each bit represents one pixel. If the bit is high, the pixel will
- turn on. If the pixel is low, the pixel will turn off.
- You can use the framebuffer as a file: fopen, fwrite, fclose...
- Although the LCD won't get updated until the next refresh time arrives.
- Also, you can mmap the framebuffer: open & mmap, munmap & close...
- which is the best option for most uses.
- Check samples/auxdisplay/cfag12864b-example.c
- for a real working userspace complete program with usage examples.
|