A lib for accessing ST7626 based lcds. It provides a set_pixel function. It is only tested with one display.

Revision:
1:ae0b4880e9db
Parent:
0:9b24f296bc0e
Child:
2:04fb8af3ecb0
--- a/lcd.h	Sun Dec 26 22:44:22 2010 +0000
+++ b/lcd.h	Sat Jan 08 19:17:57 2011 +0000
@@ -3,7 +3,16 @@
 
 #include <mbed.h>
 
-#define LCD_LED    p20
+#define LCD_X_SIZE 97
+#define LCD_Y_SIZE 67
+
+
+#undef LCD_BACKLIGHT_LED
+
+#ifdef LCD_BACKLIGHT_LED
+    #define LCD_LED    p20
+#endif
+
 #define LCD_CS     p19  // P19
 #define LCD_RESET  p21 //
 #define LCD_A0     p27  // A0
@@ -22,18 +31,20 @@
 void LoadPaint(void);
 void LoadEEPROM(void);
 void ST7626_Init(void);
-void Display(void);
-void Display1(void);
-void Display2(void);
-void LCD_clear(unsigned int GroundColor);
-void Display5x7Font(char , char , char , char , char );
-void DisplayAnother5x7Font(char , char , char , char , char );
-void Display12x16Font(char , char , char , char , char);
-void Write(unsigned char , unsigned char ); //mode (befehl oder daten) & die Daten.
+void lcd_putpixel(char color, int x, int y);
+void LCD_clear(int16_t GroundColor);
+void lcd_putc(char c, int x, int y);
+void lcd_printf(char *s, int x, int y);
+void Write(unsigned char , int8_t ); //mode (befehl oder daten) & die Daten.
 void resetdisp(void);
 void LcdLoop();
-//const char AnotherFont5x7[510];
-//const char Font12x16[];
+extern const char Font5x7[];
+extern const char Font12x16[];
+extern const char AnotherFont5x7[];
+void Display12x16Font(char letter, char x, char y, int16_t color);
+void DisplayAnother5x7Font(char letter, char x, char y,  int16_t color);
+void Display5x7Font(char letter, char x, char y, int16_t color);
+
 
 
 #endif