DHT11 Sicaklik Sensoru

Dependencies:   mbed DHT11

Files at this revision

API Documentation at this revision

Comitter:
marvas
Date:
Mon Oct 21 08:35:33 2019 +0000
Commit message:
DHT11 Sicaklik Sensoru

Changed in this revision

DHT11.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
diff -r 000000000000 -r ce456aa131e5 DHT11.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/DHT11.lib	Mon Oct 21 08:35:33 2019 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/s_inoue_mbed/code/DHT11/#e91c151d1798
diff -r 000000000000 -r ce456aa131e5 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Oct 21 08:35:33 2019 +0000
@@ -0,0 +1,17 @@
+#include "mbed.h"
+#include "DHT11.h"
+#include <iostream>
+
+DHT11 t(PC_3);
+
+int main()
+{
+    while(1)
+    {
+        t.readData();
+cout<<"Sicaklik:"<<t.readTemperature()<<" Nem:"<<t.readHumidity()<<endl;
+//printf("Sicaklik:%d Nem:%d",t.readTemperature(),t.readHumidity());
+wait(2);
+        }
+
+    }
\ No newline at end of file
diff -r 000000000000 -r ce456aa131e5 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Mon Oct 21 08:35:33 2019 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400
\ No newline at end of file