Skip to content

Conversation

@Jpe230
Copy link

@Jpe230 Jpe230 commented Feb 28, 2021

No description provided.

#define DISPLAY_WRITE_PIXELS 0x2C

#if defined(ST7789) || defined(ST7789VW)
#if (defined(ST7789) || defined(ST7789VW)) && !defined(WAVESHARE_GAMEPI20)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This #if won't be entered with the GamePi, and neither will the two #elifs below, so won't this cause the #error Unknown display controller! line be taken?

Can you change this to

#if defined(WAVESHARE_GAMEPI20)
#define DISPLAY_NATIVE_WIDTH 240
#define DISPLAY_NATIVE_HEIGHT 320
#elif defined(ST7789) || defined(ST7789VW)
....

to follow the general flow of the size setup code here? (and drop the #define sizes in the changed block below?)

@juj
Copy link
Owner

juj commented Mar 3, 2021

Great, very good work! Had that one question above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants