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

Committer:
the_sz
Date:
Sun Feb 21 04:26:17 2016 +0000
Revision:
14:2044ad5cd3fe
Parent:
7:dc29f6647486
all fonts are working

Who changed what in which revision?

UserRevisionLine numberNew contents of line
the_sz 5:13c70bcde7f6 1 #include "WakeupLight.h"
the_sz 5:13c70bcde7f6 2
the_sz 5:13c70bcde7f6 3 int32_t color;
the_sz 5:13c70bcde7f6 4
the_sz 5:13c70bcde7f6 5 void UI_ColorTestHandler(UI_REASON_ENUM reason,int32_t index,UI_STRUCT *ui)
the_sz 5:13c70bcde7f6 6 {
the_sz 5:13c70bcde7f6 7 switch (reason)
the_sz 5:13c70bcde7f6 8 {
the_sz 5:13c70bcde7f6 9 case UR_CLICK:
the_sz 5:13c70bcde7f6 10 DPrintf_("UI_ColorTestHandler: %u.\r\n",index);
the_sz 5:13c70bcde7f6 11 if (index==-1)
the_sz 5:13c70bcde7f6 12 {
the_sz 7:dc29f6647486 13 LED_SetColor(0x00000000);
the_sz 5:13c70bcde7f6 14 UI_Show(&uiMain);
the_sz 7:dc29f6647486 15 break;
the_sz 5:13c70bcde7f6 16 }
the_sz 5:13c70bcde7f6 17 else if (index==0)
the_sz 5:13c70bcde7f6 18 uiColorTest.data.valueAdjust.values[0]=(uiColorTest.data.valueAdjust.values[0]+0x10) & 0xFF;
the_sz 5:13c70bcde7f6 19 else if (index==1)
the_sz 5:13c70bcde7f6 20 uiColorTest.data.valueAdjust.values[1]=(uiColorTest.data.valueAdjust.values[1]+0x10) & 0xFF;
the_sz 5:13c70bcde7f6 21 else if (index==2)
the_sz 5:13c70bcde7f6 22 uiColorTest.data.valueAdjust.values[2]=(uiColorTest.data.valueAdjust.values[2]+0x10) & 0xFF;
the_sz 5:13c70bcde7f6 23 else if (index==3)
the_sz 5:13c70bcde7f6 24 uiColorTest.data.valueAdjust.values[3]=(uiColorTest.data.valueAdjust.values[3]+0x10) & 0xFF;
the_sz 5:13c70bcde7f6 25 else if (index==4)
the_sz 5:13c70bcde7f6 26 uiColorTest.data.valueAdjust.values[0]=(uiColorTest.data.valueAdjust.values[0]-0x10) & 0xFF;
the_sz 5:13c70bcde7f6 27 else if (index==5)
the_sz 5:13c70bcde7f6 28 uiColorTest.data.valueAdjust.values[1]=(uiColorTest.data.valueAdjust.values[1]-0x10) & 0xFF;
the_sz 5:13c70bcde7f6 29 else if (index==6)
the_sz 5:13c70bcde7f6 30 uiColorTest.data.valueAdjust.values[2]=(uiColorTest.data.valueAdjust.values[2]-0x10) & 0xFF;
the_sz 5:13c70bcde7f6 31 else if (index==7)
the_sz 5:13c70bcde7f6 32 uiColorTest.data.valueAdjust.values[3]=(uiColorTest.data.valueAdjust.values[3]-0x10) & 0xFF;
the_sz 5:13c70bcde7f6 33 color=COLOR_CREATE(uiColorTest.data.valueAdjust.values[0],uiColorTest.data.valueAdjust.values[1],uiColorTest.data.valueAdjust.values[2],uiColorTest.data.valueAdjust.values[3]);
the_sz 5:13c70bcde7f6 34 DPrintf_("UI_ColorTestHandler: Color: 0x%08X.\r\n",color);
the_sz 5:13c70bcde7f6 35 LED_SetColor(color);
the_sz 5:13c70bcde7f6 36 break;
the_sz 7:dc29f6647486 37
the_sz 7:dc29f6647486 38 case UR_SHOW:
the_sz 7:dc29f6647486 39 color=COLOR_CREATE(uiColorTest.data.valueAdjust.values[0],uiColorTest.data.valueAdjust.values[1],uiColorTest.data.valueAdjust.values[2],uiColorTest.data.valueAdjust.values[3]);
the_sz 7:dc29f6647486 40 LED_SetColor(color);
the_sz 7:dc29f6647486 41 break;
the_sz 5:13c70bcde7f6 42 }
the_sz 5:13c70bcde7f6 43 }