James Kidd / Adafruit_PCD8544_MBED

Files at this revision

API Documentation at this revision

Comitter:
infotech1
Date:
Sun Nov 02 11:44:51 2014 +0000
Parent:
1:03227e59446f
Commit message:
Fixed hardcoded Pin usage for SPI

Changed in this revision

Adafruit_PCD8544.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 03227e59446f -r c70a41c0d9d8 Adafruit_PCD8544.cpp
--- a/Adafruit_PCD8544.cpp	Sun Nov 02 07:17:42 2014 +0000
+++ b/Adafruit_PCD8544.cpp	Sun Nov 02 11:44:51 2014 +0000
@@ -172,7 +172,7 @@
 
   if (isHardwareSPI()) {
     // Setup hardware SPI.
-        LcdSPI = new SPI(D11,NC,D13);
+        LcdSPI = new SPI(myPins.mosi,NC,myPins.sclk);
         LcdSPI->format(LCD_SPI_BITS, LCD_SPI_MODE);
         LcdSPI->frequency(LCD_FREQ);
   }