Skip to content

Pico ST7789 refactoring#718

Merged
Gadgetoid merged 6 commits into32blit:masterfrom
Daft-Freak:pico-st7789-refactor
Oct 7, 2021
Merged

Pico ST7789 refactoring#718
Gadgetoid merged 6 commits into32blit:masterfrom
Daft-Freak:pico-st7789-refactor

Conversation

@Daft-Freak
Copy link
Collaborator

Some of this is for supporting the other displays, but the rest results in more constants, more metadata and less hardcoded pins. (And also fixes it being a class that can only have one instance because reasons)

It was broken for multiple instances by the pixel doubling code, and we
only need one anyway. As a bonus, this makes it so that advanced users
can #include the header and do low-level screen things.

While here, make the pin definitions/screen size constant.
Easy now that they're constant
@Gadgetoid Gadgetoid merged commit 6edf665 into 32blit:master Oct 7, 2021
@Gadgetoid
Copy link
Contributor

Thank you! That all ended up as a bit of a hack.

@Daft-Freak Daft-Freak deleted the pico-st7789-refactor branch October 7, 2021 13:28
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