Skip to content

Only space for 128 points in Sparkline? #25

Closed
@axelmagnus

Description

@axelmagnus

Hello!

I cant seem to find any info on how many points can be stored in a sparkline.
When I try to add my 129th element to a sparkline i get the follow error:

Traceback (most recent call last): File "code.py", line 232, in <module> File "adafruit_display_shapes/sparkline.py", line 98, in add_value MemoryError: memory allocation failed, allocating 1024 bytes

I would at least want the size to be as many as my displaywidth, 320 on a PyPortal. Does Titano have more?

Can this be increased to say 1024 points? (If this indeed is the error)

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