Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: Grove_temp_sensor mbed
Diff: main.cpp
- Revision:
- 0:3fa32ef93fdc
- Child:
- 1:e3c235c7edaf
diff -r 000000000000 -r 3fa32ef93fdc main.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Wed Mar 09 00:00:46 2016 +0000
@@ -0,0 +1,11 @@
+#include "mbed.h"
+#include "Grove_temp_sensor.h"
+AnalogIn Grove_temp_sensor(p15);
+
+int main() {
+ double temp;
+ while(1) {
+ temp = Grove_temp_sensor.read();
+ printf("The temperature is: %5.2F C \n\r", temp);
+ }
+}
Grove Temperature Sensor