Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for GamePi20 #198

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Added support for GamePi20 #198

wants to merge 1 commit into from

Conversation

Jpe230
Copy link

@Jpe230 Jpe230 commented Feb 28, 2021

No description provided.

@@ -15,7 +15,7 @@
#define DISPLAY_SET_CURSOR_Y 0x2B
#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