Skip to content

Example fails with OverflowError: value must fit in 1 byte(s) #19

Closed
@mrmcwethy

Description

@mrmcwethy

I am using CP 4 rc3. I was told there was a recent change that checks on assignment for high-order bits truncation. The EPD library used to do & 0xFF when assigning to a buffer item, but that was removed. I think it is now really needed.

epd.py lines 131, 132
mcp_sram.py lines 74,75,84,85,113,114
all need & 0xFF added.

I am ready to fix this, if it is truely a bug.

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