prev()
prev(int position)
Returns int
This function returns the previous led compared to the one given in the argument, wrapping around if the 0th led is given. prev(2)
returns 1, prev(1)
returns 0, prev(0)
returns 2.
Example:
prev(int position)
Returns int
This function returns the previous led compared to the one given in the argument, wrapping around if the 0th led is given. prev(2)
returns 1, prev(1)
returns 0, prev(0)
returns 2.
Example: