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