.. _lcd-library: HD44780 LCD driver library for PIC18 microcontrollers ===================================================== :date: 14 August, 2010 This project implements a simple library for interfacing to HD44780-compatible LCD displays. The code was tested on PIC18F4550 and PIC18F66K22 microcontrollers. Some of the features: * LCD initialization * Sending commands and data * Ability to write strings to the LCD * Ability to move cursor to a selected location * Custom character loading Results ------- Here is a picture of the LCD library in action. The content on the LCD was generated by the code shown below. .. raw:: html

.. code-block:: c void main(void) { // set ports as outputs TRISC = 0x00; TRISD = 0x00; lcd_initialize(); lcd_goto(1, 5); lcd_write_pgm("Armandas"); lcd_goto(2, 1); lcd_write_pgm("www.armandas.lt"); while (1); } Links ----- * C Source code: http://github.com/armandas/Yet-Another-LCD-Library References ---------- * HITACHI HD44780U datasheet * http://www.nongnu.org/avr-libc/user-manual/group__stdiodemo.html * http://code.google.com/p/arduino/source/browse/trunk/libraries/LiquidCrystal/