You've already forked Core2forAWS-MicroPython
mirror of
https://github.com/m5stack/Core2forAWS-MicroPython.git
synced 2026-05-20 10:30:31 -07:00
83623b2fde
For small ports which don't have all features enabled.
18 lines
275 B
Python
18 lines
275 B
Python
# test MicroPython-specific features of array.array
|
|
try:
|
|
import array
|
|
except ImportError:
|
|
import sys
|
|
print("SKIP")
|
|
sys.exit()
|
|
|
|
# arrays of objects
|
|
a = array.array('O')
|
|
a.append(1)
|
|
print(a[0])
|
|
|
|
# arrays of pointers
|
|
a = array.array('P')
|
|
a.append(1)
|
|
print(a[0])
|