GSOE Belueftung DS18B20
Dependencies: LCD_i2c_GSOE DS1820
Revision 3:eb195375cde7, committed 2015-03-27
- Comitter:
- hudakz
- Date:
- Fri Mar 27 12:37:34 2015 +0000
- Parent:
- 2:a680194ce6df
- Child:
- 4:d263a2860484
- Commit message:
- Function isPresent() added.
Changed in this revision
DS1820.lib | Show annotated file Show diff for this revision Revisions of this file |
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/DS1820.lib Thu Mar 26 21:12:05 2015 +0000 +++ b/DS1820.lib Fri Mar 27 12:37:34 2015 +0000 @@ -1,1 +1,1 @@ -http://developer.mbed.org/users/hudakz/code/DS1820/#4403a206e78a +http://developer.mbed.org/users/hudakz/code/DS1820/#8dfdd1603e4d
--- a/main.cpp Thu Mar 26 21:12:05 2015 +0000 +++ b/main.cpp Fri Mar 27 12:37:34 2015 +0000 @@ -34,14 +34,14 @@ // // for(int i = 0; i < 3; i++) { // if(!ds1820[i].begin()) { -// serial.printf("Couldn't find sensor %d", i); +// serial.printf("Cannot find sensor %d", i); // } else // ds1820[i].startConversion(); // } // wait(1.0); // let DS1820s complete the temperature conversion // while(1) { // for(int i = 0; i < 3; i++) { -// if(ds1820[i].present) { +// if(ds1820[i].isPresent() { // serial.printf("temp%d = %3.1f\r\n", i, ds1820[i].read()); // read temperature // ds1820[i].startConversion(); // start temperature conversion // } @@ -49,7 +49,7 @@ // wait(1.0); // let DS1820s complete the temperature conversion // } //} - +//