Skip to content

Problem with sparklines library causes example programs to crash #71

Closed
@RetiredWizard

Description

@RetiredWizard

When attempting to run the sparkline example programs the following error is displayed:

spi.frequency: 26666666
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "spark3.py", line 198, in <module>
  File "adafruit_display_shapes/sparkline.py", line 96, in add_value
  File "adafruit_display_shapes/multisparkline.py", line 201, in add_values
  File "adafruit_display_shapes/multisparkline.py", line 236, in update_line
TypeError: list indices must be integers, not list

It turns out that the update_line method of the MultiSparkline class does not accept a list of line indexes, it either updates a single line or, when "None" is passed instead of the line index, all lines.

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