KSM edits to RA8875

Dependents:   Liz_Test_Code

Revision:
136:224e03d5c31f
Parent:
135:af519fe4ba91
Child:
137:9e09f6081ef1
--- a/RA8875.cpp	Sun Nov 13 02:06:30 2016 +0000
+++ b/RA8875.cpp	Wed Nov 16 02:48:45 2016 +0000
@@ -584,6 +584,11 @@
     return ReadData();
 }
 
+uint16_t RA8875::ReadCommandW(unsigned char command)
+{
+    WriteCommand(command);
+    return ReadDataW();
+}
 
 unsigned char RA8875::ReadData(void)
 {
@@ -1121,6 +1126,19 @@
     return noerror;
 }
 
+RetCode_t RA8875::SetGraphicsCursor(point_t p)
+{
+    return SetGraphicsCursor(p.x, p.y);
+}
+
+point_t RA8875::GetGraphicsCursor(void)
+{
+    point_t p;
+    
+    p.x = ReadCommandW(0x46);
+    p.y = ReadCommandW(0x48);
+    return p;
+}
 
 RetCode_t RA8875::SetGraphicsCursorRead(loc_t x, loc_t y)
 {