PIO IX 6° A TP1_ejercicio1 ALMADA, Santiago MAVER, Francisco
Dependencies: mbed tsi_sensor DS1820
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++)