hcsr04_dht11 sicakliga gore degisim

Dependencies:   mbed HCSR04 DHT11

Files at this revision

API Documentation at this revision

Comitter:
marvas
Date:
Sat Dec 28 10:49:54 2019 +0000
Commit message:
hcsr04_dht11 sicakliga gore degisim

Changed in this revision

DHT11.lib Show annotated file Show diff for this revision Revisions of this file
HCSR04.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 c9bfe6d29b7f DHT11.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/DHT11.lib	Sat Dec 28 10:49:54 2019 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/s_inoue_mbed/code/DHT11/#e91c151d1798
diff -r 000000000000 -r c9bfe6d29b7f HCSR04.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/HCSR04.lib	Sat Dec 28 10:49:54 2019 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/antoniolinux/code/HCSR04/#86b2086be101
diff -r 000000000000 -r c9bfe6d29b7f main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sat Dec 28 10:49:54 2019 +0000
@@ -0,0 +1,24 @@
+  #include "mbed.h"
+  #include "DHT11.h"
+ #include "hcsr04.h"
+ Timer t;
+ HCSR04 sensor(PA_9, PA_8);
+  DHT11 sinyal_pini(PB_13);
+long sicaklik;
+ int main()
+  {
+        t.start();
+        while(1)
+        {
+            long mesafe = sensor.distance(sicaklik);
+        printf("Mesafe %d\n ",mesafe);
+        wait_us(15);
+        if(t.read()>2)
+        {
+        sinyal_pini.readData();
+        sicaklik=sinyal_pini.readTemperature();
+printf("Sicaklik:%d,Nem:%d \n", sicaklik,sinyal_pini.readHumidity());
+t.reset();
+}
+          }
+  }
\ No newline at end of file
diff -r 000000000000 -r c9bfe6d29b7f mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Sat Dec 28 10:49:54 2019 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400
\ No newline at end of file