test

Dependencies:   mbed-STM32F103C8T6 mbed-rtos mbed-dev

Revision:
0:217105958c2d
Child:
1:0fe432e5dfc4
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Wed Feb 20 15:13:20 2013 +0000
@@ -0,0 +1,37 @@
+#include "mbed.h"
+#include "lcd_driver.h"
+
+DigitalOut myled(LED1);
+
+
+int main() {
+    
+    Serial pc(USBTX, USBRX); // tx, rx
+
+    Lcd_Init();
+      pc.printf("Hello mbed\n");
+  LCD_clear();
+    pc.printf("clear \n");
+    Pant(0xf800);
+    Pant(0x07e0);
+   Pant(0x001f);
+        Pant(0xffff);
+    Pant(0x0000);
+
+    while(1) {
+                Pant(0xf800);
+    Pant(0x07e0);
+   Pant(0x001f);
+        Pant(0xffff);
+    Pant(0x0000);
+#if 0
+        myled = 1;
+        wait(0.5);
+        myled = 0;
+        wait(0.5);
+#endif 
+    }
+}
+
+
+