Calling a function

Nikosant03
Posts: 6
Joined: Wed Mar 13, 2019 11:44 pm

Calling a function

Postby Nikosant03 » Mon Mar 25, 2019 11:34 pm

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?

BigJinge
Posts: 1
Joined: Thu Mar 28, 2019 4:17 pm

Re: Calling a function

Postby BigJinge » Thu Mar 28, 2019 4:24 pm

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.

Who is online

Users browsing this forum: No registered users and 7 guests