WebbotLib AVR library
WebbotLib It just does it
  C++ documentation  C documentation

Phidget/Temperature.h

Phidget temperature sensor.
phidget temperature.jpg
This must be connected to an ADC pin and can return temperatures from -40 to +125 degrees celsius. It may be defined using:
Phidget_Temperature sensor = MAKE_Phidget_Temperature(ADC0);
Where ADC0 is changed to be the required ADC input pin.
The sensor should be initialised in appInitHardware using:-
temperatureInit(sensor);
The sensor can then be read using:-
temperatureRead(sensor);
and then the temperature will be in sensor.temperature.celsius

Valid XHTML 1.0 Transitional