For loope is supposed to run once but make it twice.
What am I doing wrong?
See the attachment.
For loope is supposed to run once but make it twice.
What am I doing wrong?
See the attachment.
I see no attachment so we cannot help you, please post the code.
do not foget to use code tags...
Me too.
This is the code:
char incomingByte = 0;
void setup() {
Serial.begin(9600);
}
void loop() {
if (Serial.available() > 0) {
incomingByte = Serial.read();
Serial.print("I received: ");
Serial.println(incomingByte);
}
}
am when I type smth it shows this:
I received: f
I received:
I'm asking why does I received twice and how can I correct it.
I expect you have newline selected as the line ending in the serial monitor. Try setting it to no line ending.
Thank you, that was the problem:)