diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/py/sensor_ds18b20.py	Mon Nov 19 22:46:34 2012 +0800
@@ -0,0 +1,21 @@
+#!/usr/bin/env python2.7
+
+class DS18B20s(object):
+
+    def __init__(self):
+        # query the bus 
+        pass
+
+    def get_sensors(self):
+        """ Returns a sequence of sensorname """
+        pass
+
+    def read(self):
+        """ Returns a map of sensorname->temperature """
+        pass
+
+    def wort_name(self):
+        pass
+
+    def fridge_name(self):
+        pass