EMS_Final_5/11/13 (HVM here)

Dependencies:   mbed TextLCD

Fork of 4_LCD_With_Lib by Harish Mekali

Revision:
1:71e371ba55cd
Parent:
0:15a70393058f
Child:
2:1a5d54f3d818
--- a/main.cpp	Fri Oct 04 18:28:36 2013 +0000
+++ b/main.cpp	Sun Oct 06 05:12:49 2013 +0000
@@ -1,11 +1,18 @@
 
 #include "mbed.h"
 #include "TextLCD.h"
+AnalogIn s1(p18);
 
-TextLCD lcd(p25,p26, p21, p22, p23, p24); // rs, e, d4, d5, d6, d7
+TextLCD lcd(p19,p20, p21, p22, p23, p24); // rs, e, d4, d5, d6, d7
 
 int main() 
 {
+      while(1)
+      {
+      float x;
       lcd.cls();
-      lcd.printf("Hello BMS");
+      x=s1.read();
+      lcd.printf("Sensor value = %f",x);
+      wait(0.5);
+}
 }
\ No newline at end of file