Arduino LCD Library

Description:
PopTLCD is another Arduino library to drive LCD displays.  This library is a specially compiled version of the AVR LCD Driver for use on the Arduino digital pin banks. 

Features:

  • Supports large LCD screens with multiple controllers
  • Suppoorts writes and reads
  • Supports large LCD screens that utilize split-buffer controllers (such as a 20 Char X 4 line LCD with a single controller addressed such that buffer 1 : supports line 1 and 3, buffer 2 supports line 2 and 4).
  • High-clock support by making uses of a timer scaling (timer speeds are proportional to the F_CPU clock speed).
  • Programmers may address any of the display types with a standardized write(Column,Row) style syntax.
  • All configuration values required to support LCDs are stored in an external .h file so that customizations can be easily saved and reused.

Instructions

Note: Display data pins and Arduino data pins are 0-based, display data pins numbering from 0-7, with Arduino numbering from 0-13.

  1. Extract the PopTLCD.zip to your Arduino library directory.  Example: C:\Program Files\arduino-0015\hardware\libraries\PopTLCD
  2. Edit a settings file to suite the desired LCD display. 3 example settings files are created.  The recommendation is to create a seperate settings file for each display type to save the values for easy reuse.
  3. Edit the popt_lcd_driver.cpp file to #include your custom settings file.

    Example: #include "EC4004A_settings.h"
     
  4. Create a scketch that imports the library and your customized settings file:

    #include "popt_lcd_driver.h"
    #include "EC4004A_settings.h"

    See the attached sketch file for a complete example of importing and using the EC4004A LCD display.
     
  5. Wire up your display as follows:


To use this library in 4 bit mode:

  • Display data pin 4 to Digital pin 4
  • Display data pin 5 to Digital pin 5
  • Display data pin 6 to Digital pin 6
  • Display data pin 7 to Digital pin 7
  • Display E1 to Digital pin 8
  • Display RW to Digital pin 9
  • Display RS to Digital pin 10
  • Display E2 to Digital pin 11 (if applicable)

Current Version: 0.6 Beta 3

AttachmentSize
poptLCD_Arduino_example.zip660 bytes
PopTLCD.zip18.6 KB
   

Powered by Drupal, an open source content management system