So I’ve not done this, but it looks like it would be easiest to define the array separately first. The MicroPython documentation also seems to point to the Python documentation for arrays.
I’m not sure what you’ve tried, but it looks like you need to create an object of type array.
import array
myData = array.array()
You also need to declare the type of data in the array. h looks like it is for a signed short, which I’m assuming makes no sense as your coordinates will always be positive integers, so unsigned int (‘I’) or unsigned char (?) (‘B’) might make more sense.
Rather strange that we need to include an offset from the origin as the first two numbers, x and y. Could use it to move the triangle about without a load of adjustments to the array.