Library to control a Graphics TFT connected to 4-wire SPI - revised for the Raio RA8875 Display Controller.

Dependents:   FRDM_RA8875_mPaint RA8875_Demo RA8875_KeyPadDemo SignalGenerator ... more

Fork of SPI_TFT by Peter Drescher

See Components - RA8875 Based Display

Enhanced touch-screen support - where it previous supported both the Resistive Touch and Capacitive Touch based on the FT5206 Touch Controller, now it also has support for the GSL1680 Touch Controller.

Offline Help Manual (Windows chm)

/media/uploads/WiredHome/ra8875.zip.bin (download, rename to .zip and unzip)

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.
     ///