LCD Serial with shift register

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
Suky
Date:
Sat Feb 05 19:58:24 2011 +0000
Commit message:

Changed in this revision

SerialLCD.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
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/SerialLCD.lib	Sat Feb 05 19:58:24 2011 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/Suky/code/SerialLCD/#1094a2af1c40
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sat Feb 05 19:58:24 2011 +0000
@@ -0,0 +1,23 @@
+#include "mbed.h"
+#include "LCD_Serial.h"
+
+DigitalOut myled(LED1);
+LCDSerial myLcd(p13,p14,p15,p16); // Data, Clock, Enable, Back
+
+
+
+int main() {
+    char k=0;
+    
+    myLcd.printf("\fHello mbed! Library\nLCD serial with\nshift register\nby Suky...");
+    myLcd.vSetBacklight(1);
+    while(1) {
+        myLcd.vGotoxy(20,4);
+        myLcd.vPutc(k);
+        if(++k==8){k=0;}
+        myled = 1;
+        wait(0.2);
+        myled = 0;
+        wait(0.2);
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Sat Feb 05 19:58:24 2011 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/9a9732ce53a1