Wataru Wakutsu / LM61CIZ
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers LM61CIZ.cpp Source File

LM61CIZ.cpp

00001 /**
00002  * LM61CIZ Temperature sensor library
00003  *
00004  * @author Junichi Katsu
00005  * @version 1.0
00006  * @date 02-April-2015
00007  *
00008  */
00009 
00010 #include "mbed.h"
00011 #include "LM61CIZ.h"
00012 
00013 LM61CIZ::LM61CIZ(PinName ain) : _sensor(ain){
00014 }
00015 
00016 float LM61CIZ::getTemperature(void) {
00017     return( (_sensor * 3.3 - 0.6) / 0.01 );
00018 }