00001
00012 #include <inttypes.h>
00013 #include <avr/io.h>
00014 #include <avr/interrupt.h>
00015
00016
00017 #define HD_LCD_CLEAR 0x01
00018 #define HD_RETURN_HOME 0x02
00019 #define HD_CURSOR_SHIFT_DEC 0x05
00020 #define HD_CURSOR_SHIFT_INC 0x07
00021 #define HD_DISPLAY_CONTROL 3
00022 #define HD_DISPLAY_ON 2
00023 #define HD_CURSOR_ON 1
00024 #define HD_BLINK_ON 0
00025 #define HD_CURSOR_MOVE_LEFT 0x10
00026 #define HD_CURSOR_MOVE_RIGHT 0x14
00027 #define HD_DISPLAY_SHIFT_LEFT 0x18
00028 #define HD_DISPLAY_SHIFT_RIGHT 0x1C
00029
00030
00036 void lcdPutAString (char * chrString);
00037
00042 void lcdInitialize(void);
00043
00049 void lcdToggleClear(char chrDelay);
00050
00056 void lcdWriteAChar(char chrData);
00057
00058
00064 void lcdCommand(char chrData);
00065
00070 void lcdClear(void);
00071
00076 void lcdHomeLine1(void);
00077
00082 void lcdHomeLine2(void);
00083
00084
00089 void lcdPutAChar(char chrData);