Join this channel to get access to perks:
/ @marios_ideas
This video is the short introduction to creating your own custom functions in Arduino.
It starts with very simple example to move then to more complex functions which return multiple values, using a simple trick with memory pointer.
Hope you will find this ideo usefull.