Skip to content

ST7789.Rotation is limited to 4 rotations #178

@AshbyGeek

Description

@AshbyGeek

The constructor for this class accepts an arbitrary number of rotations, but the rotation(...) setter is limited to just four.

Should change st7789.c line 1146 from:
mp_int_t rotation = mp_obj_get_int(value) % 4;
to:
mp_int_t rotation = mp_obj_get_int(value) % self->rotations_len;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions