Port of the Adafruit PCD8544 Driver @ https://github.com/adafruit/Adafruit-PCD8544-Nokia-5110-LCD-library for use in MBED Inital version only supports hardware SPI, and has been tested on a Nucleo test board. BSD license

Requires http://developer.mbed.org/users/infotech1/code/Adafruit_GFX_MBED/ to provide drawing capabilities.

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);
   }