ilk oyun kodu, bu çöp oldu artık ama iççinde joystick için main.h dosyası var o çekilebili

Dependencies:   mbed Joystick Nokia5110_KL25Z Nokia_5110

main.cpp

Committer:
ThihaElectronics
Date:
2014-03-23
Revision:
0:083b72141582
Child:
1:6497e159052d

File content as of revision 0:083b72141582:

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

int main() {
    
    
/*  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)
    myLcd.InitLcd();                // LCD is reset and DDRAM is cleared
    myLcd.DrawString("Hello");   
    while(1)
    {   };
}