Dependencies:   mbed ThermistorPack

Files at this revision

API Documentation at this revision

Comitter:
shintamainjp
Date:
Fri Sep 17 23:45:20 2010 +0000
Child:
1:2fe81b604f93
Commit message:

Changed in this revision

ThermistorPack.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ThermistorPack.lib	Fri Sep 17 23:45:20 2010 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/shintamainjp/code/ThermistorPack/#4f84f03b1703
--- /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);
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Fri Sep 17 23:45:20 2010 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/e2ac27c8e93e