+ 2
While loop in Arduino.ino
Why while loops have problem running in arduino programs ?
3 Answers
+ 4
I dunno what kind of problem you faced....
The Problem that I can guess....
1.Arduino has the slow spec but cheap that can make many robots(Ok nope That's impossible)
2.You didn't make kind of stop statement for while loop at all
+ 2
Actually the assumed c code for an arduino IDE blank sketch
void setup(){}
void loop(){}
looks like this:
void setup(void); //function prototypes
void loop(void);
int main(void) {
setup();
while(1) {
loop(); // repeat this over and over again
}
return 0; // this never happens
}
therefore there can't be problems with while loops