KSM edits to RA8875

Dependents:   Liz_Test_Code

Revision:
38:38d503b4fad6
Parent:
37:f19b7e7449dc
Child:
40:04aa280dfa39
--- a/RA8875.h	Sat Jan 25 19:47:33 2014 +0000
+++ b/RA8875.h	Sat Jan 25 21:18:03 2014 +0000
@@ -135,6 +135,16 @@
     /// at startup, and not at runtime.
     //~RA8875();
     
+    /// Write a command to the display with a word of data.
+    ///
+    /// This is a high level command, and may invoke several primitives.
+    ///
+    /// @param command is the command to write.
+    /// @param data is data to be written to the command register.
+    /// @returns success/failure code. @see RetCode_t.
+    ///
+    RetCode_t WriteCommandW(uint8_t command, uint16_t data);
+
     /// Write a command to the display
     ///
     /// This is a high level command, and may invoke several primitives.
@@ -146,6 +156,15 @@
     ///
     virtual RetCode_t WriteCommand(unsigned char command, unsigned int data = 0xFFFF);
     
+    /// Write a data word to the display
+    ///
+    /// This is a high level command, and may invoke several primitives.
+    ///
+    /// @param data is the data to write.
+    /// @returns success/failure code. @see RetCode_t.
+    ///
+    RetCode_t WriteDataW(uint16_t data);
+    
     /// Write a data byte to the display
     ///
     /// This is a high level command, and may invoke several primitives.
@@ -206,13 +225,13 @@
     ///
     /// @returns screen width in pixels.
     ///
-    virtual uint16_t width(void);
+    virtual dim_t width(void);
 
     /// get the screen height in pixels
     ///
     /// @returns screen height in pixels.
     ///
-    virtual uint16_t height(void);
+    virtual dim_t height(void);
 
     /// Set cursor position based on the current font size.
     ///