Example using the moisture sensor

Dependencies:   mbed

Fork of Seeed_Grove_Moisture_Sensor_Example by Seeed

Files at this revision

API Documentation at this revision

Comitter:
blazter94
Date:
Mon Oct 16 15:05:47 2017 +0000
Parent:
0:780321a3f63a
Commit message:

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r 780321a3f63a -r 28a27f317a57 main.cpp
--- a/main.cpp	Sat Aug 16 00:34:43 2014 +0000
+++ b/main.cpp	Mon Oct 16 15:05:47 2017 +0000
@@ -1,7 +1,7 @@
 
 #include "mbed.h"
 
-AnalogIn moisture(A0);
+AnalogIn moisture(A3);
 
 int main(void)
 {
@@ -9,7 +9,7 @@
 
     while(1) {
         value = moisture;
-        printf("Moisture reading is %2.2f\n", value);
+        printf("\nMoisture reading is %2.2f\n", value);
         wait(1.0f);
     }
 }
diff -r 780321a3f63a -r 28a27f317a57 mbed.bld
--- a/mbed.bld	Sat Aug 16 00:34:43 2014 +0000
+++ b/mbed.bld	Mon Oct 16 15:05:47 2017 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/9327015d4013
\ No newline at end of file
+http://mbed.org/users/mbed_official/code/mbed/builds/b484a57bc302
\ No newline at end of file