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.
Diff: SG12864A.h
- Revision:
- 0:18f1870c0e8e
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/SG12864A.h Fri Jun 06 23:46:41 2014 +0000
@@ -0,0 +1,63 @@
+//
+// 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
+
+
+
+
+