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.
Fork of C12832_lcd by
Revision 18:672450caf175, committed 2016-07-19
- Comitter:
- Sateg
- Date:
- Tue Jul 19 23:20:36 2016 +0000
- Parent:
- 17:ec5db47782a3
- Child:
- 19:23a26a1668cf
- Commit message:
- Changed constructor to take pins as parameters.
Changed in this revision
| DOGL128.cpp | Show annotated file Show diff for this revision Revisions of this file |
| DOGL128.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/DOGL128.cpp Sat Jul 16 22:12:27 2016 +0000
+++ b/DOGL128.cpp Tue Jul 19 23:20:36 2016 +0000
@@ -15,8 +15,8 @@
#define BPP 1 // Bits per pixel
-DOGL128::DOGL128(const char* name)
- : GraphicsDisplay(name), _spi(SPI_MOSI, NC, SPI_SCK), _reset(D7), _A0(D9), _CS(D8)
+DOGL128::DOGL128(PinName mosi, PinName clk, PinName cs, PinName a0, const char* name)
+ : GraphicsDisplay(name), _spi(mosi, NC, clk), _reset(D7), _A0(a0), _CS(cs)
{
orientation = 1;
contrast = 16;
--- a/DOGL128.h Sat Jul 16 22:12:27 2016 +0000
+++ b/DOGL128.h Tue Jul 19 23:20:36 2016 +0000
@@ -43,7 +43,7 @@
/** Create a DOGL128 object connected to SPI1
*
*/
- DOGL128(const char* name = "LCD");
+ DOGL128(PinName mosi, PinName clk, PinName cs, PinName a0, const char* name = "LCD");
/** Get the width of the screen in pixel
*
