KSM edits to RA8875

Dependents:   Liz_Test_Code

Revision:
152:a013ac0133e4
Parent:
150:35a4db3081c1
Child:
153:8a85efb3eb71
--- a/RA8875.cpp	Sun Sep 24 02:09:57 2017 +0000
+++ b/RA8875.cpp	Mon Nov 06 01:41:55 2017 +0000
@@ -1,16 +1,15 @@
-/// RA8875 Display Controller Library.
-///
-/// This is being created for a Raio RA8875-based display from buydisplay.com,
-/// which is 480 x 272 using a 4-wire SPI interface. Support is provided for
-/// both a keypad and a resistive touch-screen.
-///
-/// This driver has been fully tested with an 800 x 480 variant (also using
-/// 4-wire SPI).
-///
-/// 20161106: Updated the initialization to set the various registers based on
-///           the BuyDisplay.com example code. This altered several registers
-///           for the 800x480 display driver.
-///
+// RA8875 Display Controller Library.
+//
+// This is being created for a Raio RA8875-based display from buydisplay.com,
+// which is either 480 x 272 or 800 x 480, using a 4-wire SPI interface.
+// Support is provided for both a keypad and a resistive touch-screen.
+//
+// See the RA8875.h file for full details.
+//
+// 20161106: Updated the initialization to set the various registers based on
+//           the BuyDisplay.com example code. This altered several registers
+//           for the 800x480 display driver.
+//
 #include "RA8875.h"
 
 //#include "Utility.h"            // private memory manager
@@ -141,7 +140,7 @@
     // Interrupt
     m_irq->mode(PullUp);
     m_irq->enable_irq();
-    #if MBED_LIBRARY_VERSION > 122   // Is this the right version?
+    #if MBED_LIBRARY_VERSION >= 128   // a new callback declaration strategy in v128
     m_irq->fall(callback(this, &RA8875::TouchPanelISR));
     #else
     m_irq->fall(this, &RA8875::TouchPanelISR);