PB / DOGL128

Dependents:   DOGL128Test

Fork of C12832_lcd by Peter Drescher

Files at this revision

API Documentation at this revision

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
       *