Hello world
I am working on this very simple project where the user must enter the number that a Green & Red LED should blinks but instead the program is taking the user input for both LED I attached the code please help
sketch_jan18a.ino (1.37 KB)
Hello, Looking at your Sketch, it is clear that you misunderstand how serial works. At a baud rate of 115200, 1 character is received in 86.805... microseconds. In that same time, the microprocessor, operating at 16 MHz and performing 1 operation per clock, will have performed 1388.888 operations, give or take...
Knowing this, you will need to structure how you send and receive serial differently.
Serial.println(" Green LED Started to blink " );
for (int k=1 ; k<=Rblink ; k=k+1 )
Oops.