tim004 tim004
/
LV8-Zadatak3
Zlatan Čilić Lejla Agić
Revision 0:5ed178fe1db0, committed 2014-05-12
- Comitter:
- tim004
- Date:
- Mon May 12 07:58:37 2014 +0000
- Commit message:
- LV8-Zadatak3-Grupa1-Tim004-PAI
Changed in this revision
diff -r 000000000000 -r 5ed178fe1db0 N5110.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/N5110.lib Mon May 12 07:58:37 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/eencae/code/N5110/#adb79338d40f
diff -r 000000000000 -r 5ed178fe1db0 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Mon May 12 07:58:37 2014 +0000 @@ -0,0 +1,31 @@ +#include "mbed.h" +#include <string> +#include "N5110.h" + + + +Serial pc(USBTX, USBRX); +string buffer; +N5110 lcd(dp4,dp24,dp23,dp25,dp2,dp6,dp18); +int trenX(0); +int trenY(0); + + + +void citajPisi() +{ + char charovi[1] = {0}; + charovi [0] = pc.getc(); + lcd.printString(charovi, trenX, trenY); + trenX += 5; + //trenY++; +} + +int main() +{ + lcd.init(); + while(1) + { + citajPisi(); + } +}
diff -r 000000000000 -r 5ed178fe1db0 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Mon May 12 07:58:37 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/8a40adfe8776 \ No newline at end of file