circuitpython/tests/extmod/uctypes_byteat.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
223 B
Python
Raw Normal View History

try:
import uctypes
except ImportError:
print("SKIP")
raise SystemExit
2021-03-15 09:57:36 -04:00
data = bytearray(b"01234567")
print(uctypes.bytes_at(uctypes.addressof(data), 4))
print(uctypes.bytearray_at(uctypes.addressof(data), 4))