KEIS

Dependencies:   C12832_lcd mbed

Files at this revision

API Documentation at this revision

Comitter:
khayakawa
Date:
Tue Oct 01 00:10:26 2013 +0000
Commit message:
KEIS

Changed in this revision

C12832_lcd.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/C12832_lcd.lib	Tue Oct 01 00:10:26 2013 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/dreschpe/code/C12832_lcd/#468cdccff7af
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue Oct 01 00:10:26 2013 +0000
@@ -0,0 +1,35 @@
+
+#include "mbed.h"
+#include "C12832_lcd.h"
+
+Serial pc(USBTX, USBRX); // tx, rx
+Serial device(p9, p10);  // tx, rx
+C12832_LCD lcd;
+
+char* ch[16]={"0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"};
+
+void dev_rx () {
+    char val;
+    int tmp1,tmp2;
+    
+    val=device.getc();
+    //lcd.printf("%x ",val);
+    tmp1 = val/16;
+    tmp2 = val%16;
+    pc.printf("%s%s",ch[tmp1],ch[tmp2]);
+    //wait(.2);
+
+    
+    
+}
+
+int main() {
+
+    lcd.cls();
+    lcd.locate(0,0);
+
+    device.attach(&dev_rx, Serial::RxIrq);
+
+    
+    
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Tue Oct 01 00:10:26 2013 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/b3110cd2dd17
\ No newline at end of file