void

Hello
I know we can do void
but how does it work it can be done

void setup() {

// text blablabla;
}

void loop() {

text blablabla
}

void example1{

test blablabla;
}

void example2{


onion tomato ketchup kebab;
}

void example3{


I like unicorns;

my question is how from void loop we can call another void (example 1 or 2)
and if we can run 2 void at the same time
examples 1 and 3 who order at the same time

how from void loop we can call another void

You seem to have no problem calling functions (they are not voids) in your other threads, for example

Write_Max7219 (1, B00000000);

in optimization - Programming Questions - Arduino Forum

we can run 2 void at the same time

No, on most Arduinos only one function can be running at once

examples 1 and 3 who order at the same time

If you mean what order do they run, they run in the order in which they were called

Hi,
This might help,
upload to your controller and open the monitor in the IDE with 9600baud.

int count = 0;


void setup()
{
  Serial.begin(9600);
  Serial.println(" void setup()");
  Serial.println("=====");
}


void loop()
{
  Serial.println(count);
  Serial.println("==TOP of void loop()==");
  example1();
  example2();
  example3();
}
//====================
void example1()
{
  count = count + 1;
  Serial.println("executing example1");
  delay(500);
}
//====================
void example2()
{
  count = count + 1;
  Serial.println("executing example2");
  delay(750);
}
//====================
void example3()
{
  count = count + 1;
  Serial.println("executing example3");
  delay(1000);
}

Tom... :slight_smile: