You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The readTempC() function now does a delay(20) after requesting a new
temperature. Accorfing to the datasheet one should wait until the TB flag is
cleared in the status register.
see discussion @ http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1289330809/0
[code]
// wait until TB register clears, see page 15/29 datasheet
// iso delay(20);
boolean ready = false;
while (!ready)
{
//copy data from eeprom to scratchpad & read scratchpad
_readMem(_scratchPad);
ready = ( _scratchPad[STATUS] & 0x10) == 0x00;
delay(10); // wait before reread of the scratchpad
}
// TB is cleared so conversion is ready
[/code]
Same is possibly true for the other readings, did not look after that.
What steps will reproduce the problem?
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
Please provide any additional information below.
Original issue reported on code.google.com by [email protected] on 10 Nov 2010 at 8:23
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
[email protected]
on 10 Nov 2010 at 8:23The text was updated successfully, but these errors were encountered: