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:
- 6:8027edc2b69f
- Parent:
- 5:76a9332af64c
- Child:
- 8:01e3281451e2
diff -r 76a9332af64c -r 8027edc2b69f main.cpp --- a/main.cpp Tue Jan 06 00:54:41 2015 +0000 +++ b/main.cpp Tue Jan 06 11:16:06 2015 +0000 @@ -50,7 +50,7 @@ dht_read(); // Call the function // Send result through UART result for(i=0; i < 40; i++){ - pc.printf("%d",adat[i]); + pc.printf("\n\r%d",adat[i]); } wait_ms(200); // Wait 0.2 sec till continue. } else {