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

main.cpp

Committer:
c128
Date:
2014-08-16
Revision:
1:8e117fc4a3ac
Parent:
0:083b72141582

File content as of revision 1:8e117fc4a3ac:

#include "mbed.h"
#include "NOKIA_5110.h"

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;
    
    // Start the LCD
    NokiaLcd myLcd( myPins );

    myLcd.InitLcd();                // LCD is reset and DDRAM is cleared
    myLcd.DrawString("Hello");   
    while(1)
    {   };
}