Initial version for Modtronix LCD2S I2C and SPI serial LCD displays. For details, see http://modtronix.com/products-serial-lcd-board/

Revision:
2:fe0c1e27f362
Parent:
1:429b7d3f7b95
--- a/lcd2s.h	Tue Aug 04 18:54:37 2015 +1000
+++ b/lcd2s.h	Fri Aug 07 18:27:11 2015 +1000
@@ -24,6 +24,15 @@
 
 #include "mbed.h"
 
+#ifndef WEAK
+    #if defined (__ICCARM__)
+        #define WEAK     __weak
+    #else
+        #define WEAK     __attribute__((weak))
+    #endif
+#endif
+
+
 //LCD2S Commands
 /** Cursor moves backwards, no parameters */
 #define LCD2S_CMD_CURSOR_MOVES_BACKWARDS    0x01
@@ -205,8 +214,10 @@
     virtual void initDefault(uint8_t contrast) = 0;
 
     /** Causes the display to be updated with buffer content
+     *
+     * @return 0 if success, else error code
      */
-    virtual void display() = 0;
+    virtual uint8_t display() = 0;
 
     void clearDisplay();