Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: AdaFruit_RGBLCDShield MCP23017 mbed RTclock
Fork of MCP_test by
Diff: Adafruit_RGBLCDShield.h
- 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
