A lib for accessing ST7626 based lcds. It provides a set_pixel function. It is only tested with one display.
Diff: lcd.h
- Revision:
- 0:9b24f296bc0e
- Child:
- 1:ae0b4880e9db
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lcd.h Sun Dec 26 22:44:22 2010 +0000 @@ -0,0 +1,39 @@ +#ifndef lcd_h +#define lcd_h lcd_h + +#include <mbed.h> + +#define LCD_LED p20 +#define LCD_CS p19 // P19 +#define LCD_RESET p21 // +#define LCD_A0 p27 // A0 +#define LCD_WR p22 + +#define LCD_DATA_PORT_L Port0 //low Nibble +#define LCD_DATA_PORT_H Port2 //high Nibble + +#define LCD_DATA_PORT_MASK_L ((1<<23)|(1<<24)|(1<<25)|(1<<26)) // p15 - p22 +#define LCD_DATA_PORT_MASK_H ((1<<0)|(1<<1)|(1<<2)|(1<<3)) + +#define DATA 1 +#define COMMAND 0 + + +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 resetdisp(void); +void LcdLoop(); +//const char AnotherFont5x7[510]; +//const char Font12x16[]; + + +#endif