Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
SG12864A.h
- Committer:
- Yoshihito_Shimada
- Date:
- 2014-06-06
- Revision:
- 0:18f1870c0e8e
File content as of revision 0:18f1870c0e8e:
// // SG12864A Test Program // for TG-LPC11U35 // #ifndef SG12864A_H #define SG12864A_H #include "mbed.h" #define DI p5 #define RW p6 #define E p8 #define DB0 p9 #define DB1 p10 #define DB2 p12 #define DB3 p13 #define DB4 p15 #define DB5 p16 #define DB6 p17 #define DB7 p18 #define CS1 p20 #define CS2 p23 #define RST p24 #define ReflashRate 0.02 class SG12864A { public: SG12864A(); void lcd_Write(char cs, char code, char DIflag); char lcd_Read(char cs); char lcd_StatusRead(char cs); void lcd_Init(void); void lcd_Clear(char data); void lcd_Pixel(int Xpos, int Ypos, char On); void lcd_Char(char line, char colum, int letter); void lcd_Char1(char line, char colum, int letter); void lcd_Str(char line, char colum, char *s); void lcd_Line(int x0, int y0, int x1, int y1); void lcd_Scroll(int delay); void lcd_Image(char *ptr); private: DigitalOut DI_OUT; DigitalOut RW_OUT; DigitalOut E_OUT; BusInOut DB_OUT; DigitalOut CS1_OUT; DigitalOut CS2_OUT; DigitalOut RST_OUT; Ticker t; }; #endif // SG12864A