Jump to content

ugfx/drivers/gdisp/SSD1322/driver.mk missing


AnSc

Recommended Posts

On 5/9/2022 at 10:25 AM, inmarket said:

The divide by 2 when calling xyaddr() is incorrect. It is the xyaddr() macro itself that needs the divide by 2. As indicated by the macro name, it is supposed to take (x,y) as it's parameters. 

Hi,

thanks for this tip. As I wrote it was a crude first try. :)

I changed the macro to this:

#define xyaddr(x, y)        ((x/2) + (y)*SSD1322_ROW_WIDTH)

and did see the same correct behaviour after reverting the code line to:

ram = RAM(g)+xyaddr(x,y);

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...