Basic example showing how to drive the LCD and use double frame buffering.

Dependencies:   BSP_DISCO_F746NG mbed

Fork of DISCO-F746NG_LCDTS_demo by ST

Files at this revision

API Documentation at this revision

Comitter:
lbanaszak
Date:
Fri Dec 29 10:10:28 2017 +0000
Parent:
3:75b616b18184
Commit message:
Restore LCD_DISCO_F746NG library to original state from ST.

Changed in this revision

LCD_DISCO_F746NG.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 75b616b18184 -r ff76ddd28ee2 LCD_DISCO_F746NG.lib
--- a/LCD_DISCO_F746NG.lib	Fri Dec 29 09:58:05 2017 +0000
+++ b/LCD_DISCO_F746NG.lib	Fri Dec 29 10:10:28 2017 +0000
@@ -1,1 +1,1 @@
-https://os.mbed.com/users/lbanaszak/code/LCD_DISCO_F746NG/#b0defa2b02e6
+https://os.mbed.com/teams/ST/code/LCD_DISCO_F746NG/#d44525b1de98
diff -r 75b616b18184 -r ff76ddd28ee2 main.cpp
--- a/main.cpp	Fri Dec 29 09:58:05 2017 +0000
+++ b/main.cpp	Fri Dec 29 10:10:28 2017 +0000
@@ -68,7 +68,9 @@
     while(1) {
         
         while (!(LTDC->CDSR & LTDC_CDSR_VSYNCS)); /* Wait for VSYNC */   
-        lcd.LayerVisibleSwap( visible_layer, visible_layer^1 ); /* Swap visible layer */
+        /* Swap visible layer */
+        lcd.SetLayerVisible( visible_layer^1, DISABLE );
+        lcd.SetLayerVisible( visible_layer, ENABLE );
         
         lcd.SelectLayer(visible_layer^1); lcd.Clear(LCD_COLOR_BLACK);    
         for( uint32_t idx=0; idx<BOXES_NUM; idx++ ) {