Rotate_LCDText u krug

Dependencies:   TextLCD mbed

Files at this revision

API Documentation at this revision

Comitter:
tmaltaric
Date:
Fri May 22 17:23:31 2015 +0000
Commit message:
Rotate LCD text

Changed in this revision

TextLCD.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
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r 000000000000 -r 3d442bfc983f TextLCD.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/TextLCD.lib	Fri May 22 17:23:31 2015 +0000
@@ -0,0 +1,1 @@
+http://developer.mbed.org/users/wim/code/TextLCD/#d3496c3ea301
diff -r 000000000000 -r 3d442bfc983f main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri May 22 17:23:31 2015 +0000
@@ -0,0 +1,25 @@
+#include "mbed.h"
+#include "TextLCD.h"
+// TextLCD lcd(p19, p20, p21, p22, p23, p24); //rs,e,d0,d1,d2,d3
+TextLCD lcd(p19, p20, p21, p22, p23, p24,TextLCD::LCD8x2);
+const char *message = "                  ******Maltaric******";
+
+int main() {
+
+while (1) {
+int i;
+for (i = 0; message[i]; i++) {
+    lcd.locate(0,0);
+    int j, k = i;
+    for (j = 0; j < 20; j++) {
+        if (message[k+j]) {
+            lcd.putc(message[k+j]);
+        } else {
+            lcd.putc(' ');
+            k--;
+        }
+    }
+    wait_ms(450);
+}    
+}
+}
\ No newline at end of file
diff -r 000000000000 -r 3d442bfc983f mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Fri May 22 17:23:31 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/dbbf35b96557
\ No newline at end of file