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

Revision:
17:94c385ff2641
Parent:
11:e89f89c0920b
Child:
18:be0130c42925
--- a/tsk_led.cpp	Wed Dec 16 22:37:56 2015 +0000
+++ b/tsk_led.cpp	Fri Dec 18 15:23:21 2015 +0000
@@ -4,11 +4,18 @@
 #include "tsk_led.h"
 
 
-struct led_flash_times_struct led_flash_times = { 100, 2500 };
+struct led_flash_times_struct led_flash_times;
 
 
 static DigitalOut  led2(LED2);
 
+uint32_t initLed(void const *args) {
+    
+    led_flash_times.on_time = 100;
+    led_flash_times.off_time = 2500;
+   
+    return 1;
+}
 
 void led_thread(void const *args) {