Justin Howard / Mbed 2 deprecated AdaFruit_RGBLCD

Dependencies:   AdaFruit_RGBLCDShield MCP23017 mbed RTclock

Dependents:   SX1276_GPS

Fork of MCP_test by Wim Huiskamp

Revision:
6:a6be2aede8f2
Parent:
5:6c9ee7e3a20c
--- a/Adafruit_RGBLCDShield.h	Sat Aug 02 14:16:30 2014 +0000
+++ b/Adafruit_RGBLCDShield.h	Sat Aug 02 16:05:40 2014 +0000
@@ -68,7 +68,7 @@
 {
 public:
     // Updated constructor
-  Adafruit_RGBLCDShield(MCP23017 & inMCP);
+  Adafruit_RGBLCDShield(MCP23017 & inMCP, Serial & inSerial);
 
   void init(uint8_t fourbitmode, uint8_t rs, uint8_t rw, uint8_t enable,
         uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3,
@@ -107,6 +107,8 @@
   uint8_t readButtons();
 
 private:
+  void debugWait(const char * inMessage);
+
   void send(uint8_t, uint8_t);
   void write4bits(uint8_t);
   void write8bits(uint8_t);
@@ -129,6 +131,7 @@
 
   uint8_t _i2cAddr;
   MCP23017 _i2c;
+  Serial & _debug;
 };
 
 #endif