td1

Dependencies:   lib_LCD_i2c_SPTLYI mbed

Revision:
0:dca3b291558e
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Oct 23 09:42:24 2014 +0000
@@ -0,0 +1,35 @@
+#include "mbed.h"
+#include "lib_LCD_i2c_SPTLYI.h"
+LCD_I2C LCD(p28,p27,p26,0x7C);
+
+int main()
+{
+
+
+    float i=0;
+    float j=0;
+
+    LCD.set_position_cursor(0,0);
+    LCD.print("compteur:");
+    LCD.set_position_cursor(0,1);
+    LCD.print("compteur2:");
+    while(1) {
+        
+
+        LCD.set_position_cursor(9,0);
+
+        LCD.print(i++);
+        if(i>99) i=0.0 ;
+        wait(0.25);
+
+
+        LCD.set_position_cursor(10,1);
+
+        LCD.print(j=i/2);
+        if(j>99) j=0.0 ;
+        wait(0.25);
+
+    }
+}
+
+