You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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_encodedTraceback (mostrecentcalllast):
File"<stdin>", line1, in<module>File"/usr/local/lib/python3.7/dist-packages/adafruit_fram.py", line174, in__setitem__"Data must be a single integer, or a bytearray,"" list, or tuple."ValueError: Datamustbeasingleinteger, orabytearray, list, ortuple.
>>>
since encode returns a bytes.
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
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:
since encode returns a
bytes
.The text was updated successfully, but these errors were encountered: