Course project for LE484 at Thammasat University, class of 2016

Revision:
8:12d666d1afb4
Parent:
7:d702abfe51e3
Child:
9:5b4959a735a1
diff -r d702abfe51e3 -r 12d666d1afb4 sensorTask.cpp
--- a/sensorTask.cpp	Mon May 08 04:42:04 2017 +0000
+++ b/sensorTask.cpp	Mon May 08 04:44:33 2017 +0000
@@ -4,18 +4,14 @@
 AnalogIn analog_value(A0);
 DigitalOut led(LED1);
 
-void sensorIn() {
+void sensorIn()
+{
     float meas;
-    
+
     while(1) {
         meas = analog_value.read();
-        meas = meas * 3300; 
+        meas = meas * 3300;
         printf("measure = %.0f mV\n", meas);
-        if (meas > 2000){
-          led = 1;
-        }
-        else 
-          led = 0;
-        wait(0.2);
+
     }
-    }
+}