programme

Dependencies:   C12832 mbed

Fork of app-board-LCD by Chris Styles

Revision:
4:34ca548f4e5a
Parent:
3:2db94ee076ee
--- a/main.cpp	Wed Feb 05 15:32:38 2014 +0000
+++ b/main.cpp	Thu Feb 19 13:19:03 2015 +0000
@@ -3,17 +3,37 @@
 
 
 C12832 lcd(p5, p7, p6, p8, p11);
-
+//DigitalOut myled(LED1);
+DigitalOut myled1(LED1);
+DigitalOut myled2(LED2);
+DigitalOut led3(LED3);
+DigitalOut led4(LED4);
 int main()
 {
+    
     int j=0;
     lcd.cls();
-    lcd.locate(0,3);
-    lcd.printf("mbed application board!");
+    lcd.locate(30,15);
+    lcd.printf("hadj  test 3");
 
-    while(true) {   // this is the third thread
-        lcd.locate(0,15);
-        lcd.printf("Counting : %d",j);
+    while(1) {   // this is the third thread
+    
+    myled1=1;
+    myled2=0;
+    led3=1;
+    led4=0;
+    
+    wait(0.5);
+    myled1=0;
+    myled2=1;
+    led3=0;
+    led4=1;
+    wait(0.5);
+        lcd.locate(30,15);
+        lcd.printf("conteur : %d",j);
+        //wait(1.0);
+//::lcd.locate(20,15);
+//lcd.printf("conteur 2: %d",j);
         j++;
         wait(1.0);
     }