News:

;) This forum is the property of Proton software developers

Main Menu

Half Screen Scrolling

Started by SeanG_65, Jun 25, 2022, 08:56 PM

Previous topic - Next topic

SeanG_65

Anyone have an idea how I can scroll graphics in the bottom half of a 320 X 240 GLCD?

I was thinking to use LCD_Read n+1 (in a column) then LCD_Write the data to n (in a column). Anyone have any source code that might help me please? If not I'll write my own, but I hate re-inventing the wheel.

top204

The methods depend on what controller is in the graphic LCD.

For example, some LCD controllers will only scroll the window that has been set up on the LCD, when the scroll command is sent to the chip. While others will scroll the whole display, regardless of the window size.

Moving that much data on a higher resolution LCD will not be immediate, especially if using a serial interface to it. Because all of the data in the section that needs scrolling has to be read from the LCD into a RAM buffer, then written further along the LCD, and the new graphics written to it. Pixel by Pixel.