simple question

how do i pass reference in arduino software? is it the same as c++ by using &? ex. int me (char &you)

?

Hi you do it like this:

function declaration: int me (char * var){

*var = 1;

}

you call the function like this: char b = 0; me (&b); //& means pas address of var. Serial.print (b); // b = now .... 1! ;)

Hi you do it like this:

function declaration: int me (char * var){

That's a pointer, not a reference.

The OP had it right.