Closed
Description
For ref:
https://forums.adafruit.com/viewtopic.php?f=60&t=175648
Seems like this could be supported? Not seeing anything requiring mutability on the FRAM write. And tuples are allowed.
This would allow for doing something like:
>>> message = "Python is fun"
>>> bytes_encoded = message.encode()
>>> fram[0] = bytes_encoded
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.7/dist-packages/adafruit_fram.py", line 174, in __setitem__
"Data must be a single integer, or a bytearray," " list, or tuple."
ValueError: Data must be a single integer, or a bytearray, list, or tuple.
>>>
since encode returns a bytes
.
Metadata
Metadata
Assignees
Labels
No labels