SMARTGPU intelligent embedded graphics processor, this library helps to communicate mBed with SMARTGPU dev board 2.4\" touch, excellent serial board that only require TX,RX, and Reset pin to mbed. Powerfull graphics and text processor with universal 4GB micro SD (FAT windows) format compatible. For detailed information visit: http://www.vizictechnologies.com/#/desarrollo/4554296549 www.vizictechnologies.com

Dependents:   VariousSG BouncingBalls BounceBall House ... more

Revision:
1:96ed067e95a6
Parent:
0:32fe54a88167
Child:
2:8da93960a86b
--- a/SMARTGPU.h	Mon Sep 12 23:23:11 2011 +0000
+++ b/SMARTGPU.h	Tue Sep 13 04:04:20 2011 +0000
@@ -5,11 +5,10 @@
 #include <mbed.h>
 
 //****USER DEFINED PINS (modify to select another serial port of MBED*****//
-
-//PinOUT for MBED Definitions
-#define TXpin    p13
-#define RXpin    p14
-#define resetPin p15
+// Definitions of Pin out for MBED
+//#define TXpin    p13
+//#define RXpin    p14
+//#define resetPin p15
 //**********************END OF USER DEFINED PINS**************************//
 
 
@@ -60,10 +59,15 @@
 #define FONT6   0x06
 #define FONT7   0x07
 
+//**************************************************************************
+// class SMARTGPU SMARTGPU.h
+// This is the main class. It shoud be used like this : SMARTGPU lcd(p13,p14,p15);
+
 class SMARTGPU{
     
 public:
-    SMARTGPU();
+    
+    SMARTGPU(PinName TXPin, PinName RXPin, PinName resetPin);
     
     void init();
 
@@ -112,6 +116,13 @@
     unsigned char touchScreen(int[]);
     
     unsigned char touchIcon(char[]);
+
+    protected :
+
+    Serial     _serialSMARTGPU;
+    DigitalOut _resetPin;
+    
 };
+typedef unsigned char BYTE;
 
 #endif