You are on page 1of 1

/*------------------------------------------------------------------+ File Name : lcd_drv.

h Module Name : LCD HD44780 Driver Description : define pin assignments for LCD Last Update : 26/03/2013 - 1.0 (FLEXIBLE PINOUT) Author : Dafi Yondra (dafi.yondra@gmail.com) Base on article of LCD interfacing Original author : Bruce E. Hall <bhall66@gmail.com> Website : w8bh.net +-------------------------------------------------------------------*/ // TYPEDEFS typedef uint8_t byte; // I just like byte & sbyte better typedef int8_t sbyte; // --------------------------------------------------------------------------// // // // // // // // // // // Routines: LCD_Init initializes the LCD controller LCD_Cmd sends LCD controller command LCD_Char sends single ascii character to display LCD_Clear clears the LCD display & homes cursor LCD_Home homes the LCD cursor LCD_GotoXY puts cursor at position (x,y) LCD_Line puts cursor at start of line (x) LCD_Hex displays a hexadecimal value LCD_Integer displays an integer value LCD_Message displays a string SetupPorts(); msDelay(int); PulseEnableLine(); SendNibble(byte); SendByte (byte);

void void void void void

void LCD_Init(); void LCD_Cmd (byte); void LCD_Char (byte); void LCD_Clear(); void void void void void void LCD_Home(); LCD_GotoXY(byte,byte); LCD_Line(byte); LCD_Hex(); LCD_Integer(); LCD_Message();

You might also like