Skip to main content
Hicss.2033
Associate III
June 23, 2020
Question

IS it possible to buid an applications that moves a circle around the screen on a STM32F42I discovery utilizing the BSP_LCD drivers? I've tried by deleting and drawing the new circle, but there is some flickering when I draw below 500 msec. Thanks, P

  • June 23, 2020
  • 0 replies
  • 416 views

Here is the code. I'm looking for a solution that works with BSP_LCD (perhaps with other call)

while(1){

HAL_Delay(300);

x+=10;

BSP_LCD_SetTextColor(LCD_COLOR_WHITE);

BSP_LCD_FillCircle(BSP_LCD_GetXSize()/3+x-10, BSP_LCD_GetYSize()/3, CIRCLE_RADIUS);

//HAL_Delay(5);

BSP_LCD_SetTextColor(LCD_COLOR_GREEN);

BSP_LCD_FillCircle(BSP_LCD_GetXSize()/3+x, BSP_LCD_GetYSize()/3, CIRCLE_RADIUS);

}

This topic has been closed for replies.