Wakeup Light with touch user interface, anti-aliased Font, SD card access and RTC usage on STM32F746NG-DISCO board

Dependencies:   BSP_DISCO_F746NG_patch_fixed LCD_DISCO_F746NG TS_DISCO_F746NG FATFileSystem TinyJpgDec_interwork mbed-src

Revision:
3:ecf7f1f8d749
Parent:
1:35e2ad5cd1fe
Child:
5:13c70bcde7f6
--- a/LED.cpp	Thu Oct 29 12:59:54 2015 +0000
+++ b/LED.cpp	Thu Oct 29 18:09:31 2015 +0000
@@ -48,6 +48,44 @@
             LED_SetColor(color);
         }
     }
+    else if (ledAnimation==LAE_OFF)
+    {
+        float       red;
+        float       green;
+        float       blue;
+        float       white;
+        uint32_t    redInt;
+        uint32_t    greenInt;
+        uint32_t    blueInt;
+        uint32_t    whiteInt;
+
+        red=ledRed.read();
+        if (red>0.0)
+            red-=0.001;
+        red=MAX(red,0.0);
+        redInt=(int32_t)(red*255.0);
+
+        green=ledGreen.read();
+        if (green>0.0)
+            green-=0.001;
+        green=MAX(green,0.0);
+        greenInt=(int32_t)(green*255.0);
+
+        blue=ledBlue.read();
+        if (blue>0)
+            blue-=0.001;
+        blue=MAX(blue,0.0);
+        blueInt=(int32_t)(blue*255.0);
+
+        white=ledWhite.read();
+        if (white>0)
+            white-=0.001;
+        white=MAX(white,0.0);
+        whiteInt=(int32_t)(white*255.0);
+
+        color=COLOR_CREATE(redInt,greenInt,blueInt,whiteInt);
+        LED_SetColor(color);
+    }
 }
 
 void LED_StartAnimation(LED_ANIMATION_ENUM animation)