cg

Dependencies:   TextLCD mbed

Files at this revision

API Documentation at this revision

Comitter:
HisyamSulaiman
Date:
Thu May 24 04:11:22 2018 +0000
Parent:
0:a060af406e72
Commit message:
aqil

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Thu May 17 06:51:12 2018 +0000
+++ b/main.cpp	Thu May 24 04:11:22 2018 +0000
@@ -6,14 +6,24 @@
 AnalogIn Ain(PC_3);
 float ADCdata;
 
-
 int main() {
-    while(1) {
+    
+lcd.locate (1,0);   
+lcd.printf("Temp Measure");
+lcd.locate (0,1);   
+lcd.printf("Cel");
+lcd.locate (8,1);   
+lcd.printf("Fah");
+        
+    /*while(1) {
         ADCdata=Ain;
-        ADCdata=ADCdata*100;
+        ADCdata=ADCdata;
         lcd.locate (4,1);
         lcd.printf("%f",ADCdata);
         pc.printf("%f\n\r",ADCdata);
-        wait(0.5);
+        lcd.locate (11,1);
+        lcd.printf("%f",ADCdata);
+        pc.printf("%f\n\r",ADCdata);
+        wait(0.5);*/
     }
-}
+