stm32_hal_graphics_display_drivers icon indicating copy to clipboard operation
stm32_hal_graphics_display_drivers copied to clipboard

ILI9486 Scroll function divide by zero error

Open alexantony13 opened this issue 1 year ago • 0 comments
trafficstars

File: ili9486.c Function: void ili9486_Scroll(int16_t Scroll, uint16_t TopFix, uint16_t BottonFix) Since the static uint16_t scrparam[4] array is zero initialized, the line Scroll = (0 - Scroll) % scrparam[2]; will generate a divide by zero error when executed the first time.

alexantony13 avatar Jan 05 '24 08:01 alexantony13