i am encountring a problem with the serial.
I apploaded a simple code to the ESP32S Dev Kit:
#include "Arduino.h"
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
while(!Serial);
pinMode(1, OUTPUT);
Serial.println("Serial is working");
}
void loop() {
// put your main code here, to run repeatedly:
Serial.println("New Line is written!");
digitalWrite(1, HIGH);
delay(2500);
digitalWrite(1, LOW);
delay(2500);
}
Pin 1 is being written HIGH and LOW.
The problem is that i am not getting any output on the serial.
What can be the reason?
First check the baud rate on your serial monitor, and then restart the application.
Also try removing the cable and plugging it in.
Try removing while(!Serial);