Emir Sokic
/
LV7_LCDtest
LCD test
Revision 0:01c7393abf13, committed 2014-04-08
- Comitter:
- esokic
- Date:
- Tue Apr 08 12:17:12 2014 +0000
- Commit message:
- Nokia 5110 displej test
Changed in this revision
diff -r 000000000000 -r 01c7393abf13 N5110.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/N5110.lib Tue Apr 08 12:17:12 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/eencae/code/N5110/#adb79338d40f
diff -r 000000000000 -r 01c7393abf13 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Tue Apr 08 12:17:12 2014 +0000 @@ -0,0 +1,22 @@ +#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); + +int main() +{ + enable=1; + + // inicijalizacija displeja + lcd.init(); + + // prikaz stringa + lcd.printString("Mi volimo PAI!",0,0); + + while(1); +} \ No newline at end of file
diff -r 000000000000 -r 01c7393abf13 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Tue Apr 08 12:17:12 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/6473597d706e \ No newline at end of file