Danois90:
Try this:int count = 0;
void setup() {
Serial.begin(9600);
}
void loop() {
if ((count < 3) && (++count == 3)) {
Serial.println(count);
}
}
How does that fix the problem?
(sorry I'm away from my arduino to test it personally)
Danois90:
Try this:int count = 0;
void setup() {
Serial.begin(9600);
}
void loop() {
if ((count < 3) && (++count == 3)) {
Serial.println(count);
}
}
How does that fix the problem?
(sorry I'm away from my arduino to test it personally)