00001 /*! \file glcd.h \brief Graphic LCD API functions. */ 00002 //***************************************************************************** 00003 // 00004 // File Name : 'glcd.h' 00005 // Title : Graphic LCD API functions 00006 // Author : Pascal Stang - Copyright (C) 2002 00007 // Date : 5/30/2002 00008 // Revised : 5/30/2002 00009 // Version : 0.5 00010 // Target MCU : Atmel AVR 00011 // Editor Tabs : 4 00012 // 00013 // NOTE: This code is currently below version 1.0, and therefore is considered 00014 // to be lacking in some functionality or documentation, or may not be fully 00015 // tested. Nonetheless, you can expect most functions to work. 00016 // 00017 // This code is distributed under the GNU Public License 00018 // which can be found at http://www.gnu.org/licenses/gpl.txt 00019 // 00020 //***************************************************************************** 00021 00022 #ifndef GLCD_H 00023 #define GLCD_H 00024 00025 #ifndef WIN32 00026 // AVR specific includes 00027 #include <avr/io.h> 00028 #endif 00029 00030 #include "global.h" 00031 00032 #define LINE1 0 00033 #define LINE2 1 00034 #define LINE3 2 00035 #define LINE4 3 00036 #define LINE5 4 00037 #define LINE6 5 00038 #define LINE7 6 00039 #define LINE8 7 00040 00041 #define ON 1 00042 #define OFF 0 00043 00044 // API-level interface commands 00045 // ***** Public Functions ***** 00046 00047 //! set a dot on the display (x is horiz 0:127, y is vert 0:63) 00048 void glcdSetDot(u08 x, u08 y); 00049 00050 //! clear a dot on the display (x is horiz 0:127, y is vert 0:63) 00051 void glcdClearDot(u08 x, u08 y); 00052 00053 //! draw line 00054 void glcdLine(u08 x1, u08 y1, u08 x2, u08 y2); 00055 00056 //! draw rectangle (coords????) 00057 void glcdRectangle(u08 x, u08 y, u08 a, u08 b); 00058 00059 //! draw circle of <radius> at <xcenter,ycenter> 00060 void glcdCircle(u08 xcenter, u08 ycenter, u08 radius); 00061 00062 //! write a standard ascii charater (values 20-127) 00063 // to the display at current position 00064 void glcdWriteChar(unsigned char c); 00065 00066 //! write a special graphic character/icon 00067 // to the display at current position 00068 void glcdWriteCharGr(u08 grCharIndex); 00069 00070 // ***** Private Functions ***** (or depricated) 00071 void glcdPutStr(u08 *data); 00072 00073 #endif
1.3-rc2