温度センサ

Dependencies:   TextLCD mbed

Fork of temp_LCD by toshio masuda

Files at this revision

API Documentation at this revision

Comitter:
MasudaToshio
Date:
Thu May 23 09:40:59 2013 +0000
Commit message:
?????

Changed in this revision

TextLCD.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/TextLCD.lib	Thu May 23 09:40:59 2013 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/simon/code/TextLCD/#44f34c09bd37
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu May 23 09:40:59 2013 +0000
@@ -0,0 +1,23 @@
+#include "mbed.h"
+#include "TextLCD.h"
+
+AnalogIn LM60(p15);
+TextLCD lcd(p24, p26, p27, p28, p29, p30);
+
+/////////////////////////////////////////////////////
+//      main
+/////////////////////////////////////////////////////
+int main(void) {
+        float a_in , tempC ;
+    lcd.cls();
+
+    while(1) {
+        a_in = (LM60);
+        tempC = (  ( a_in * 3.3 ) - 0.424  ) * 160.0 ;
+        lcd.locate(0,0);
+        lcd.printf("%5.2F C %5.3F V ", tempC, a_in);
+        wait(.5);
+    }
+
+    return 0;
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu May 23 09:40:59 2013 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/10b9abbe79a6
\ No newline at end of file