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.
Diff: LM61CIZ.cpp
- Revision:
- 0:8aeec297e67f
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/LM61CIZ.cpp Sun May 17 15:14:22 2015 +0000 @@ -0,0 +1,21 @@ +/** + * LM61CIZ Temperature sensor library + * + * @author Junichi Katsu + * @version 1.0 + * @date 02-April-2015 + * + */ + +#include "mbed.h" +#include "LM61CIZ.h" + +LM61CIZ::LM61CIZ(PinName ain) : _sensor(ain) +{ + +} + +float LM61CIZ::getTemperature(void) +{ + return( ( _sensor * 3.3 - 0.6) / 0.01); +} \ No newline at end of file