Nokia 5110 test stm32 nucleo pins working with Chris Yang's NOKIA_5110 library

Dependencies:   NOKIA_5110 mbed

Fork of Nokia5110_KL25Z by Thiha Electronics

Revision:
1:8e117fc4a3ac
Parent:
0:083b72141582
diff -r 083b72141582 -r 8e117fc4a3ac main.cpp
--- a/main.cpp	Sun Mar 23 03:04:48 2014 +0000
+++ b/main.cpp	Sat Aug 16 05:53:26 2014 +0000
@@ -3,16 +3,19 @@
 
 int main() {
     
+    LcdPins myPins;   
+
+//    myPins.sce  = PB_6;   
+    myPins.sce  = PA_9;  
+    myPins.rst  = PA_6;
+    myPins.dc   = PA_8;
+    myPins.mosi = PA_7;//SPI_MOSI;
+    myPins.miso = NC;
+    myPins.sclk = PA_5;//SPI_SCK;
     
-/*  PinName mosi;
-    PinName miso;
-    PinName sclk;
-    PinName dc;
-    PinName sce;
-    PinName rst;*/
-    
-    LcdPins myLcdPins = { PTC6, NC, PTC5, PTD2, PTD0, PTD3 };
-    NokiaLcd myLcd( myLcdPins );    // SPI is started here (8-bits, mode 1)
+    // Start the LCD
+    NokiaLcd myLcd( myPins );
+
     myLcd.InitLcd();                // LCD is reset and DDRAM is cleared
     myLcd.DrawString("Hello");   
     while(1)