Passing Arrays into a function

You want to elaborate on what you did to make it work? I am curious as I am just starting to play with this same piece of hardware....