Closed
Description
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
Labels
No labels