Dependencies:   mbed ThermistorPack

Revision:
0:3e34ebd07d13
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Sep 17 23:45:20 2010 +0000
@@ -0,0 +1,24 @@
+/**
+ * Test program for thermistor driver class (Version 0.0.1)
+ *
+ * Copyright (C) 2010 Shinichiro Nakamura (CuBeatSystems)
+ * http://shinta.main.jp/
+ */
+#include "mbed.h"
+
+#include "ThermistorMCP9701.h"
+
+DigitalOut myled(LED1);
+
+ThermistorMCP9701 s1(p16);
+ThermistorMCP9701 s2(p17);
+ThermistorMCP9701 s3(p18);
+ThermistorMCP9701 s4(p19);
+ThermistorMCP9701 s5(p20);
+
+int main() {
+    while (1) {
+        printf("%.1f %.1f %.1f %.1f %.1f\n", s1.read(), s2.read(), s3.read(), s4.read(), s5.read());
+        wait_ms(500);
+    }
+}