Simple test program to get familiar with functionality of MBED RTOS on ST Nucleo-F411RE. Tasks for LED blinking, user button, temperature measurement with DS1620, temperature measurement with internal temperature sensor of ST32F411RE, ultrasonic distance measurement and displaying result on 16x2 TextLCD.
Dependencies: DS1620_improved TextLCD_improved mbed-rtos mbed
Diff: tsk_dist.cpp
- Revision:
- 13:f62b10a6e1c5
- Parent:
- 9:645f0e517017
- Child:
- 15:a627638edd9c
diff -r 1de8b271e292 -r f62b10a6e1c5 tsk_dist.cpp --- a/tsk_dist.cpp Mon Dec 14 18:15:57 2015 +0000 +++ b/tsk_dist.cpp Mon Dec 14 19:38:24 2015 +0000 @@ -48,6 +48,6 @@ dist_data.distance = (timer.read()/2.0f - 0.0f)*340.0f*1000.0f; } - Thread::wait(500); + Thread::wait(1000); } }