2017-03-09 04:26:31 -05:00
|
|
|
try:
|
|
|
|
import uio
|
|
|
|
except ImportError:
|
|
|
|
print("SKIP")
|
2017-06-10 13:14:16 -04:00
|
|
|
raise SystemExit
|
2017-03-09 04:26:31 -05:00
|
|
|
|
2017-02-01 16:38:38 -05:00
|
|
|
import micropython
|
|
|
|
|
|
|
|
data = b"1234" * 16
|
|
|
|
buf = uio.BytesIO(64)
|
|
|
|
|
|
|
|
micropython.heap_lock()
|
|
|
|
|
|
|
|
buf.write(data)
|
|
|
|
|
|
|
|
micropython.heap_unlock()
|
|
|
|
|
|
|
|
print(buf.getvalue())
|