I shall see if that works. Is there a way to do it without the extra function though? I had originally thought it was just a syntax error, but it might be more. Here is some more information that might clear things up.
Those are my initialized variables at the beginning of the code. The arrays may change based on some hardware work I do, but it is easy enough to paste in the new values and change the size here if needed.
Later on, i want to be able to call it before a function that uses the variable "gauge" and "gaugesSize":
But, unsurprisingly, I receive the compile error
In function 'void loop()':
error: incompatible types in assignment of 'int ' to 'int '
Is there a way to re-initialize the variable "gauge" so that I can just equate them?
Looking at your code it would appear to work, but I was hoping there might be a simpler solution.