This driver is meant for the monochrome LCD display (model no: LS013B4DN04) from Sharp; but it should be easily adaptable to other Sharp displays.
Revision 3:761d0f489b61, committed 2014-08-07
- Comitter:
- rgrover1
- Date:
- Thu Aug 07 14:27:12 2014 +0000
- Parent:
- 2:270ee57c0367
- Commit message:
- minor improvement to the constructor for SharpLCD
Changed in this revision
SharpLCD.hpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 270ee57c0367 -r 761d0f489b61 SharpLCD.hpp --- a/SharpLCD.hpp Wed Jul 30 07:53:49 2014 +0000 +++ b/SharpLCD.hpp Thu Aug 07 14:27:12 2014 +0000 @@ -248,9 +248,7 @@ public: SharpLCD(PinName enable, PinName cs, PinName mosi, PinName miso_unused, PinName sclk, PinName _unused = NC) : - displayEnable(enable), chipSelect(cs), spi(mosi, miso_unused, sclk, _unused) { - displayEnable = 0; - chipSelect = 0; + displayEnable(enable, 0), chipSelect(cs, 0), spi(mosi, miso_unused, sclk, _unused) { spi.frequency(1000000); spi.format(8, 0); };