You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
266 B
16 lines
266 B
# test MicroPython-specific features of array.array
|
|
try:
|
|
import array
|
|
except ImportError:
|
|
print("SKIP")
|
|
raise SystemExit
|
|
|
|
# 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])
|
|
|