Call sub in Arduino?


In there is the possibility to call another sub using the call statement. Is this also possible in Arduino (C/C++)

Void print() {

// enter code


Void loop() {

Call print


Something like this.

Thanks in advance.

Yes. Give this a try...

void print( void )

void loop( void )

Good luck, Brian

It works :)


See here for details including how to pass parameters and return a value.