local copy of rgplcd shield
Fork of AdaFruit_RGBLCDShield by
Revision 3:bc884631d057, committed 2015-06-16
- Comitter:
- ftagius
- Date:
- Tue Jun 16 11:51:49 2015 +0000
- Parent:
- 2:01f8491ca9a5
- Commit message:
- updates for use with sx1276
Changed in this revision
AdaFruit_RGBLCDShield.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/AdaFruit_RGBLCDShield.cpp Sat Aug 30 16:29:58 2014 +0000 +++ b/AdaFruit_RGBLCDShield.cpp Tue Jun 16 11:51:49 2015 +0000 @@ -68,7 +68,7 @@ // MBED - wired in serial // MBED - wired in _i2c Adafruit_RGBLCDShield::Adafruit_RGBLCDShield(MCP23017 & inMCP) - : Serial(SERIAL_TX, SERIAL_RX) + : Serial(USBTX, USBRX) , _i2c(inMCP) { _i2cAddr = 0; @@ -103,7 +103,7 @@ uint8_t inD6, uint8_t inD7 ) - : Serial(SERIAL_TX, SERIAL_RX) + : Serial(USBTX, USBRX) , _i2c(inMCP) { _i2cAddr = 0; @@ -169,7 +169,9 @@ _i2c.pinMode(6, OUTPUT); _i2c.pinMode(7, OUTPUT); - setBacklight(0x7); +// setBacklight(0x7); + setBacklight(0x2); + if (_rw_pin) _i2c.pinMode(_rw_pin, OUTPUT);