the last gpio in the array has to be zero