comparison py/sensor_ds18b20.py @ 141:4755e6f9a5b8

python raspberry pi rewrite
author Matt Johnston <matt@ucc.asn.au>
date Mon, 19 Nov 2012 22:46:34 +0800
parents
children 482d7852b511
comparison
equal deleted inserted replaced
139:94330d90f11f 141:4755e6f9a5b8
1 #!/usr/bin/env python2.7
2
3 class DS18B20s(object):
4
5 def __init__(self):
6 # query the bus
7 pass
8
9 def get_sensors(self):
10 """ Returns a sequence of sensorname """
11 pass
12
13 def read(self):
14 """ Returns a map of sensorname->temperature """
15 pass
16
17 def wort_name(self):
18 pass
19
20 def fridge_name(self):
21 pass