PiStorms  4.015
PiStorms Library Reference by mindsensors.com
 All Classes Namespaces Files Functions Variables
GroveDevices.Grove_Temperature_Sensor Class Reference

This class supports the Grove Temperature Sensor v1.2. More...

Inheritance diagram for GroveDevices.Grove_Temperature_Sensor:
PiStorms_GRX.GrovePort

Public Member Functions

def __init__
 
def temperature
 
def CtoF
 A convenience function to convert Celsius to Fahrenheit.
 
- Public Member Functions inherited from PiStorms_GRX.GrovePort
def __init__
 

Additional Inherited Members

- Public Attributes inherited from PiStorms_GRX.GrovePort
 comm
 
 readValue
 
 writeValue
 

Detailed Description

This class supports the Grove Temperature Sensor v1.2.

This sensor uses a thermistor (portmanteau of "thermal" and "resistor") to detect temperature. Note that, in the case of a sudden temperature change (such as putting it in the freezer), the sensor will take a minute for its reading to stabalize at the new temperature.

Documentation: http://wiki.seeed.cc/Grove-Temperature_Sensor_V1.2/

1 import GroveDevices
2 # initialize a temperature sensor connected to Bank A analog 1
4 if (temp.temperature() > 22.0):
5  print("You might want a fan, it's getting a bit hot.")

Member Function Documentation

def GroveDevices.Grove_Temperature_Sensor.temperature (   self)
Returns
A decimal corresponding to the detected temperature in Celsius

The documentation for this class was generated from the following file: