Page 1 of 1

Calling a function

Posted: Mon Mar 25, 2019 11:34 pm
by Nikosant03
Hi everyone,

I compile and upload the following sketch on esp32 devkic

Code: Select all

void setup() {

Serial.begin(9600);
Serial.println("Hi");
count();

}

void count(){
  for (int i=0;i<5;i++){

  Serial.println(i);
  }
}

void loop() {
}

The problem is that the serial monitor shows nothing.. When I upload the same sketch on my Arduino UNO it works fine..
Any advice?

Re: Calling a function

Posted: Thu Mar 28, 2019 4:24 pm
by BigJinge
As you are running the code on two different boards, on the devkit COM port serial window, make sure that the serial speed in the code and the one selected at the bottom of that window match, otherwise you'll either see nothing of garbage.