anilgkts / arduino

Automatically exported from code.google.com/p/arduino
Other
0 stars 0 forks source link

TSic code enhancement for supporting better accuracy of temperature sensor #839

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I made some minor changes for the TSic files (tsic.h and tsic.cpp) in order to 
support Arduino v. 1.0 and to have a 2 digit precision float numer given back 
by the main routine used to collect the temperature value from the tsic device.

1.)#inlude "WProgram.h" is changed to #inlude "Arduino.h" in both, tsic.h and 
tsic.cpp, to get compatibility with Ardunino v. 1.0
I don't know, if this has some incompatibilities issues with earlier versions 
of Arduino Software (<1.0).

2.) In the original library, only a int could be changed by reference as a read 
out, now a float is changed by reference

tsic has accuracy of up to 0.1 °C, tehrefore a float gives more precision then 
an int.

Original issue reported on code.google.com by dvt....@googlemail.com on 2 Mar 2012 at 12:12

Attachments: