Skip to content

presto.partial_update not updating the supplied region #56

@themissingcow

Description

@themissingcow

I was attempting to use presto.partial_update, and finding the screen didn't update. Did I miss anything?

Expected Behaviour

The screen is white in the top half, and blue in the bottom.

Observed Behaviour

The screen is blue.

Repro

Run the following snippet on the Presto with release 0.0.7.

from presto import Presto

presto = Presto()
display = presto.display
w, h = display.get_bounds()

BLUE = display.create_pen(28, 181, 202)
WHITE = display.create_pen(255, 255, 255)

display.set_pen(BLUE)
display.clear()

presto.update()

display.set_pen(WHITE)
display.clear()

presto.partial_update(0, 0, w, h // 2)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions