A fork of Chris Yan's Nokia 5110 LCD library, adapted to LPC1347. Should work on a DipCortex M3 and an EzSBC2 dev board.
Fork of Nokia5110 by
Diff: main.cpp
- Revision:
- 4:46e538ce39d4
- Parent:
- 2:e448efb1fa68
--- a/main.cpp Fri Jan 10 22:22:17 2014 +0000 +++ b/main.cpp Thu Jul 02 23:52:55 2015 +0000 @@ -7,6 +7,8 @@ // display pixels, characters, and numbers on the Nokia 5110 LCD. // Created using a sparkfun breakout board with integrated Phillips 8544 driver // for 48x84 LCDs. +// +// Version for EzSBC2 (an LPC1347 dev board similar to DipCortex M3) by Jonne Valola #include "mbed.h" #include "NOKIA_5110.h" @@ -15,12 +17,18 @@ { // Init the data structures and NokiaLcd class LcdPins myPins; - myPins.sce = p8; + /*myPins.sce = p8; myPins.rst = p9; myPins.dc = p10; myPins.mosi = p11; myPins.miso = NC; - myPins.sclk = p13; + myPins.sclk = p13;*/ + myPins.sce = P0_2; // SPI0 SSEL + myPins.rst = P0_4; // can be anything + myPins.dc = P0_5; + myPins.mosi = P0_9; + myPins.miso = P0_8; + myPins.sclk = P1_29; NokiaLcd myLcd( myPins );