SWO+USB Serial+TouchScreen Demo

Dependencies:   BSP_DISCO_F429ZI LCD_DISCO_F429ZI SWO TS_DISCO_F429ZI USBDEVICE mbed storage_on_flash

Fork of DISCO-F429ZI_LCDTS_demo by ST

Revision:
9:62df0b9df08d
Parent:
7:9276134bb25e
Child:
10:1e21661f4e04
--- a/main.cpp	Tue Mar 20 16:19:27 2018 +0000
+++ b/main.cpp	Tue Mar 20 16:41:14 2018 +0000
@@ -239,7 +239,8 @@
     BSP_LCD_SetLayerVisible_NoReload(layer, ENABLE);
     LCD_Reload_Safe();
     lcd.Clear(LCD_COLOR_BLUE);
-    lcd.DrawBitmap((lcd.GetYSize()-302)/2, (lcd.GetXSize()-68)/2, big_fastlite_logo_68_302);
+    uint8_t* pBmp = (uint8_t*)big_fastlite_logo_68_302;
+    lcd.DrawBitmap((lcd.GetYSize()-302)/2, (lcd.GetXSize()-68)/2, pBmp);
 }
 
 void draw_version_screen(int layer)
@@ -252,7 +253,8 @@
     BSP_LCD_SetFont(&UbuntuFont23);
     
     lcd.Clear(LCD_COLOR_BLUE);
-    lcd.DrawBitmap((lcd.GetYSize()-302)/2, 0, big_fastlite_logo_68_302);
+    uint8_t* pBmp = (uint8_t*)big_fastlite_logo_68_302;
+    lcd.DrawBitmap((lcd.GetYSize()-302)/2, 0, pBmp);
     
     sprintf((char*)text, "TEC interface");
     lcd.DisplayStringAt(5, LINE(0)+70, (uint8_t *)&text, LEFT_MODE);
@@ -467,13 +469,17 @@
     
     //FASTLITE LOGO + LINE
     DrawRectCentered(lcd.GetYSize()/2, lcd.GetXSize()-6, lcd.GetYSize(), 2);
-    lcd.DrawBitmap(lcd.GetYSize()-90, lcd.GetXSize()-20, fastlite_logo_landscape_90_20);
+    uint8_t* pBmp = (uint8_t*)fastlite_logo_landscape_90_20;
+    lcd.DrawBitmap(lcd.GetYSize()-90, lcd.GetXSize()-20, pBmp);
+    
     
     //FRINGEEZZ LOGO
     #ifdef DEBUG
-        lcd.DrawBitmap(0, lcd.GetXSize()-20-49-40, fringeezz_logo_landscape_124_49);
+        pBmp = (uint8_t*)fringeezz_logo_landscape_124_49;
+        lcd.DrawBitmap(0, lcd.GetXSize()-20-49-40, pBmp);
     #else
-        lcd.DrawBitmap(5, 5, big_fringezz_logo_91_233);    
+        pBmp = (uint8_t*)big_fringezz_logo_91_233;
+        lcd.DrawBitmap(5, 5, pBmp);    
     #endif
     
     sprintf((char*)text, "TEC set-up:");
@@ -495,7 +501,8 @@
     lcd.SetTextColor(LCD_COLOR_WHITE);
     lcd.Clear(LCD_COLOR_BLUE);
     
-    lcd.DrawBitmap(1, 1, fringeezz_logo_landscape_124_49);
+    uint8_t* pBmp = (uint8_t*)fringeezz_logo_landscape_124_49;
+    lcd.DrawBitmap(1, 1, pBmp);
    
     lcd.SetBackColor(LCD_COLOR_BLUE);
     lcd.SetTextColor(LCD_COLOR_WHITE);
@@ -561,7 +568,8 @@
     
     //FASTLITE LOGO + LINE
     DrawRectCentered(lcd.GetYSize()/2, lcd.GetXSize()-6, lcd.GetYSize(), 2);
-    lcd.DrawBitmap(lcd.GetYSize()-90, lcd.GetXSize()-20, fastlite_logo_landscape_90_20);
+    pBmp = (uint8_t*)fastlite_logo_landscape_90_20;
+    lcd.DrawBitmap(lcd.GetYSize()-90, lcd.GetXSize()-20, pBmp);
 }
 
 void draw_screens(int screen, int layer)