martnak / STM32-ILI9341

Simple HAL driver for ILI9341 320x240 TFT LCD with Touchscreen for STM32 microcontrollers
MIT License
200 stars 86 forks source link

8 bits only for X and Y in ILI9341_Draw_Char #11

Open g0mgx opened 4 years ago

g0mgx commented 4 years ago

The coordinate parameters X and Y in the function ILI9341_Draw_Char are only 8 bits but in horizontal mode the screen width is 320. The resut is the x position wraps at 255 and you cant draw text on the far RHS of the screen.

Fixed in my local copy and now working 100%.

Thanks for the library.

phant0master commented 3 years ago

Had this issue. Lost 2 days on debugging.