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

Committer:
kaliczp
Date:
Mon Jan 05 22:31:03 2015 +0000
Revision:
0:e8a1a503d390
Child:
1:c0c5b5860aa8
Initial revision from blink led

Who changed what in which revision?

UserRevisionLine numberNew contents of line
kaliczp 0:e8a1a503d390 1 #include "mbed.h"
kaliczp 0:e8a1a503d390 2
kaliczp 0:e8a1a503d390 3 DigitalOut myled(LED1);
kaliczp 0:e8a1a503d390 4
kaliczp 0:e8a1a503d390 5 int main() {
kaliczp 0:e8a1a503d390 6 while(1) {
kaliczp 0:e8a1a503d390 7 myled = 1; // LED is ON
kaliczp 0:e8a1a503d390 8 wait(0.2); // 200 ms
kaliczp 0:e8a1a503d390 9 myled = 0; // LED is OFF
kaliczp 0:e8a1a503d390 10 wait(1.0); // 1 sec
kaliczp 0:e8a1a503d390 11 }
kaliczp 0:e8a1a503d390 12 }