See Python array for more information.
Create array with elements of given type. Initial contents of the array are given by an iterable. If it is not provided, an empty array is created. Supported format codes:
b
: signed char, 1 byteB
: unsigned char, 1 byteh
: signed short, 2 bytesH
: unsigned short, 2 bytesi
: signed int, 2 bytesI
: unsigned int, 2 bytesl
: signed long, 4 bytesL
: unsigned long, 4 bytesq
: signed long long, 8 bytesQ
: unsigned long long, 8 bytesf
: foat, 4 bytesd
: double, 8 bytesAdapting the typecode to the array-type you want to create can save a lot of space on the microcontroller
Append new element to the end of array, growing it.
Append new elements as contained in an iterable to the end of array, growing it.