Closed
Description
In the simpletest example there is commented out code that writes multiple bytes to the FRAM device at once:
Adafruit_CircuitPython_FRAM/examples/fram_spi_simpletest.py
Lines 30 to 32 in 34c3f75
But if you uncomment and attempt to run this code it raises this error:
Traceback (most recent call last):
File "code.py", line 31, in <module>
File "adafruit_fram.py", line 173, in __setitem__
ValueError: Data must be a single integer for single addresses
I think the line writing the data needs to include a slice of the proper length like this:
fram[0:99] = values
I tested that locally and it seems to work, though I have very little experience with FRAM so I can't be certain it's correct.
Metadata
Metadata
Assignees
Labels
No labels