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
00001 // 00002 // SG12864A Test Program 00003 // for TG-LPC11U35 00004 // 00005 00006 #ifndef SG12864A_H 00007 #define SG12864A_H 00008 00009 #include "mbed.h" 00010 00011 #define DI p5 00012 #define RW p6 00013 #define E p8 00014 #define DB0 p9 00015 #define DB1 p10 00016 #define DB2 p12 00017 #define DB3 p13 00018 #define DB4 p15 00019 #define DB5 p16 00020 #define DB6 p17 00021 #define DB7 p18 00022 #define CS1 p20 00023 #define CS2 p23 00024 #define RST p24 00025 00026 #define ReflashRate 0.02 00027 00028 00029 class SG12864A { 00030 public: 00031 00032 SG12864A(); 00033 void lcd_Write(char cs, char code, char DIflag); 00034 char lcd_Read(char cs); 00035 char lcd_StatusRead(char cs); 00036 void lcd_Init(void); 00037 void lcd_Clear(char data); 00038 void lcd_Pixel(int Xpos, int Ypos, char On); 00039 void lcd_Char(char line, char colum, int letter); 00040 void lcd_Char1(char line, char colum, int letter); 00041 void lcd_Str(char line, char colum, char *s); 00042 void lcd_Line(int x0, int y0, int x1, int y1); 00043 void lcd_Scroll(int delay); 00044 void lcd_Image(char *ptr); 00045 00046 private: 00047 DigitalOut DI_OUT; 00048 DigitalOut RW_OUT; 00049 DigitalOut E_OUT; 00050 BusInOut DB_OUT; 00051 DigitalOut CS1_OUT; 00052 DigitalOut CS2_OUT; 00053 DigitalOut RST_OUT; 00054 Ticker t; 00055 00056 }; 00057 00058 #endif // SG12864A 00059 00060 00061 00062 00063
Generated on Tue Aug 2 2022 22:01:40 by
