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: DS1820 antirrebote matriz mbed tsi_sensor
Fork of DS1820_HelloWorld by
Diff: main.cpp
- Revision:
- 2:d644c874ea0c
- Parent:
- 0:e069f9f26768
- Child:
- 3:f483abe4bc57
--- a/main.cpp Mon Feb 16 16:54:07 2015 +0000
+++ b/main.cpp Thu Feb 26 22:21:13 2015 +0000
@@ -1,5 +1,5 @@
#define MULTIPLE_PROBES
-#define DATA_PIN D13
+#define DATA_PIN A0
#ifdef MULTIPLE_PROBES
@@ -22,7 +22,7 @@
}
printf("Found %d device(s)\r\n\n", num_devices);
-
+ while(1);
while(1) {
probe[0]->convertTemperature(true, DS1820::all_devices); //Start temperature conversion, wait until ready
for (int i = 0; i<num_devices; i++)
