run on FRDM- K64F

Fork of C12832_lcd by Peter Drescher

Files at this revision

API Documentation at this revision

Comitter:
lvwei1990
Date:
Fri Jan 16 06:35:39 2015 +0000
Parent:
8:c9afe58d786a
Commit message:
Run on FRDM- K64F

Changed in this revision

C12832_lcd.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/C12832_lcd.cpp	Fri Dec 21 21:58:19 2012 +0000
+++ b/C12832_lcd.cpp	Fri Jan 16 06:35:39 2015 +0000
@@ -28,7 +28,7 @@
 #define BPP    1       // Bits per pixel
 
 C12832_LCD::C12832_LCD(const char* name)
-    : _spi(p5,NC,p7),_reset(p6),_A0(p8),_CS(p11),GraphicsDisplay(name)
+    : _spi(D11,NC,D13),_reset(D12),_A0(D7),_CS(D10),GraphicsDisplay(name)
 {
     orientation = 1;
     draw_mode = NORMAL;
@@ -133,7 +133,7 @@
 
     _spi.format(8,3);                 // 8 bit spi mode 3
     _spi.frequency(20000000);          // 19,2 Mhz SPI clock
-    DigitalOut _reset(p6);
+    DigitalOut _reset(D12);
     _A0 = 0;
     _CS = 1;
     _reset = 0;                        // display reset