earthlcd / ezLCD-5x

Public Repository for ezLCD-5035-RT release files system, firmware and issue reporting
https://earthlcd.com/products/ezlcd-5x?_pos=1&_sid=0927d2260&_ss=r
0 stars 1 forks source link

Screen boundaries are off with box command #44

Open randy-earthlcd opened 1 year ago

randy-earthlcd commented 1 year ago

Describe the bug The screen start and end coordinates are off in the box command. Possibly LCD timing is wrong.

To Reproduce

  1. Run this command: ez.Cls(0) -- These are outer pixels of the screen, [0,319] and [0,239] but shows a red line on top only ez.Box (0,0,319,239,0xff0000) -- draw a red box

By trial and error this draws a red box filling the outer displayable pixels from 1,0 to 318, 238

ez.Cls(0xFFFFFF) ez.Box (1,0,318,238,0xff0000) --These are outer pixels of the screen, shouldn't they be [0,319] and [0,239]?

Expected behavior Randall the intern tried to draw a box the size of the screen and it was off center so by trial and error he found what he had to do to draw a one pixel thick box on the perimeter of the screen.