lcd
Revision 0:33942995c47e, committed 2020-09-16
- Comitter:
- pathae
- Date:
- Wed Sep 16 12:33:51 2020 +0000
- Commit message:
- lcd
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/TextLCD.lib Wed Sep 16 12:33:51 2020 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/simon/code/TextLCD/#308d188a2d3a
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Wed Sep 16 12:33:51 2020 +0000
@@ -0,0 +1,28 @@
+#include "mbed.h"
+#include "TextLCD.h"
+
+//TextLCD lcd(p10, p12, p15, p16, p29, p30); // rs, rw, e, d0, d1, d2, d3
+TextLCD lcd(D8,D9,D4,D5,D6,D7,TextLCD::LCD16x2);
+//TextLCD lcd{A0,A1,A2,A3,A4,A5,TextLCD::LCD16x2};//
+const char *message = " Hello there mousie!";
+
+int main() {
+ //lcd.printf("Yay! Woo! from Rainycat!");
+ while (1) {
+ int i;
+ for (i = 0; message[i]; i++) {
+ lcd.locate(0,0);
+ int j, k = i;
+ for (j = 0; j < 15; j++) {
+ if (message[k+j]) {
+ lcd.putc(message[k+j]);
+ } else {
+ lcd.putc(' ');
+ k--;
+ }
+ }
+ wait_ms(450);
+ }
+ }
+}
+
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Wed Sep 16 12:33:51 2020 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/8ed44a420e5c \ No newline at end of file