This is a very basic (hopefully easily understandeable) program to send the data bits of a DHT11 temperature and humidity sensor through Nucleo UART. It is a simple step-by-step guide to build the program.

Dependencies:   mbed

Fork of DHT11_with_Nucleo by Adatgy2014

Files at this revision

API Documentation at this revision

Comitter:
kaliczp
Date:
Mon Nov 30 20:54:59 2015 +0000
Parent:
11:1379308ecace
Commit message:
Some formatting.

Changed in this revision

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 1379308ecace -r b9d8281f19fb main.cpp
--- a/main.cpp	Tue Jan 20 02:21:22 2015 +0000
+++ b/main.cpp	Mon Nov 30 20:54:59 2015 +0000
@@ -48,6 +48,7 @@
             myled = 1; // LED is ON
             dht_read(); // Call the function
             // Send result through UART result
+            pc.printf("Humidity: "); // Humidity
             pc.printf("%d", (adat  & 0x000000ff00000000) >> 32); // Humidity
             pc.printf("\n\r"); // Send a new line and carriage return.
             pc.printf("%d", (adat & 0x0000000000ff0000) >> 16 ); // Temperature
diff -r 1379308ecace -r b9d8281f19fb mbed.bld
--- a/mbed.bld	Tue Jan 20 02:21:22 2015 +0000
+++ b/mbed.bld	Mon Nov 30 20:54:59 2015 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/4fc01daae5a5
\ No newline at end of file
+http://mbed.org/users/mbed_official/code/mbed/builds/487b796308b0
\ No newline at end of file