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

st7789: Remove mystery meat command implicated by #567. #898

Merged
merged 1 commit into from
Jan 23, 2024

Conversation

Gadgetoid
Copy link
Member

This should, in theory, fix the weird display corruption bug affecting Tufty 2040.

This should, in theory, fix the weird display corruption bug affecting Tufty 2040.
@Gadgetoid
Copy link
Member Author

Ran the following repro code before and after this commit, and it seems to confirm the fix-

from picographics import PicoGraphics, DISPLAY_TUFTY_2040, PEN_RGB565 as PEN

lcd = PicoGraphics(DISPLAY_TUFTY_2040, pen_type=PEN)

lcd.set_backlight(0.8)

v = 255

while True:
    lcd.set_pen(lcd.create_pen(v, v, v))
    lcd.clear()
    lcd.set_pen(lcd.create_pen(0, 0, 0))
    lcd.rectangle(10, 10, 50, 50)
    lcd.update()

Before:

7A5FB266-97F5-4169-AA99-7914E663FACD_1_102_a

After:

81E180D0-06E9-4BF4-B253-5AF508504F26_1_102_a

@Gadgetoid Gadgetoid merged commit 6b23c15 into main Jan 23, 2024
28 checks passed
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.

1 participant