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.
Revision 2:c70a41c0d9d8, committed 2014-11-02
- 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);
}