Opis

Dependencies:   N5110 SWSPI mbed

Fork of LV7_LCDtest by Emir Sokic

Files at this revision

API Documentation at this revision

Comitter:
esokic
Date:
Fri May 20 23:25:54 2016 +0000
Parent:
0:01c7393abf13
Commit message:
Program za komunikaciju FRDM i Nokia displeja

Changed in this revision

N5110.lib Show annotated file Show diff for this revision Revisions of this file
SWSPI.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 01c7393abf13 -r a174ab8a7339 N5110.lib
--- a/N5110.lib	Tue Apr 08 12:17:12 2014 +0000
+++ b/N5110.lib	Fri May 20 23:25:54 2016 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/eencae/code/N5110/#adb79338d40f
+https://developer.mbed.org/users/esokic/code/N5110/#9efee30ed6d3
diff -r 01c7393abf13 -r a174ab8a7339 SWSPI.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/SWSPI.lib	Fri May 20 23:25:54 2016 +0000
@@ -0,0 +1,1 @@
+https://developer.mbed.org/users/esokic/code/SWSPI/#3a9981048283
diff -r 01c7393abf13 -r a174ab8a7339 main.cpp
--- a/main.cpp	Tue Apr 08 12:17:12 2014 +0000
+++ b/main.cpp	Fri May 20 23:25:54 2016 +0000
@@ -1,22 +1,25 @@
 #include "mbed.h"
 #include "N5110.h"
 
+
 //Deklaracija LCD objekta
 //N5110 lcd(VCC,SCE,RST,D/C,MOSI,SCLK,LED)
-N5110 lcd(dp4,dp24,dp23,dp25,dp2,dp6,dp18);
-
-//Digitalni izlaz za deaktivaciju LED buffera
-DigitalOut enable(dp14);
+N5110 lcd(PTB8,PTA13,PTA12,PTD5,PTD2,PTC5,PTE20);
 
 int main()
 {
-    enable=1;
-
     // inicijalizacija displeja
     lcd.init();
 
     // prikaz stringa
     lcd.printString("Mi volimo PAI!",0,0);
 
-    while(1);
+    wait(2);
+
+    lcd.clear();
+    lcd.printString("Mi ipak vise",0,0);
+    lcd.printString("volimo US!",0,1);
+    while(1) {
+
+    }
 }
\ No newline at end of file