00001 00005 #ifndef LCD_H 00006 #define LCD_H 00007 00008 #include "console.h" 00009 #include "lcdfonts.h" 00010 00011 #define ROM_CHAR_PTR code char* 00012 void LcdSelectFont(ROM_CHAR_PTR font); 00013 00014 extern code const unsigned char lcd_hexchars[17]; 00015 00017 #define LcdLocateHome(){LcdPutCommand (128);InitiateDelay(39);} 00018 00020 #define LcdLocateLine2(){LcdPutCommand (168);InitiateDelay(39);} 00021 00023 #define LcdLocateCG(){LcdPutCommand (64);InitiateDelay(39);} 00024 00025 void LcdPutChar(char c); 00026 void LcdPutCommand(char cmd); 00027 void LcdReset(); 00028 void LcdPutString(char *str); 00029 void LcdPutConstantString(char code *str); 00030 void LcdSplashScreen(); 00031 void LcdPutHex8 (unsigned char value); 00032 void LcdPutHex16 (unsigned int value); 00033 unsigned char LcdPrintGenericResult (unsigned char errorlevel); 00034 void LcdPutUInt(unsigned long value); 00035 00036 00037 #endif