I am trying to store data from a joystick to an array and then replay it in reverse. Right now I have my program setup to print data 0(joystick full backwards)-255(joystick full forwards). I want to store these values into some sort of array or value holder to be reprinted in reverse.
Example:
If I print the values:
0
0
0
50
58
255
Then reprint the values in reverse:
255
58
50
0
0
0.