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
Diff: main.cpp
- Revision:
- 7:5b0793a2b391
- Parent:
- 5:76a9332af64c
- Child:
- 8:01e3281451e2
diff -r 76a9332af64c -r 5b0793a2b391 main.cpp --- a/main.cpp Tue Jan 06 00:54:41 2015 +0000 +++ b/main.cpp Tue Jan 06 11:20:37 2015 +0000 @@ -52,6 +52,7 @@ for(i=0; i < 40; i++){ pc.printf("%d",adat[i]); } + pc.printf("\n\r"); // Send a new line and carriage return. wait_ms(200); // Wait 0.2 sec till continue. } else { myled = 0; // LED is OFF