While loop
good evening gentleman,
i have little problem making while loop work , i`ve tried other examples of while or dowhile loops didn`t work either.
here source code:
there more code this, programs not seem out of loop once value of sensor (senzorspate) > 500.
any ideas why ? don`t want use while, can use dowhile aswell, tried aswell did not work.
i know i`m doing wrong...but don`t know what, other eyes may see better(for sure) i`m newbie.
thanks, , sorry bad english.
i have little problem making while loop work , i`ve tried other examples of while or dowhile loops didn`t work either.
here source code:
there more code this, programs not seem out of loop once value of sensor (senzorspate) > 500.
any ideas why ? don`t want use while, can use dowhile aswell, tried aswell did not work.
i know i`m doing wrong...but don`t know what, other eyes may see better(for sure) i`m newbie.
thanks, , sorry bad english.
code: [select]
while(senzorspate < 500)
{
int senzorspate
you've introduced new variable, 1 controlling loop cannot accessed , therefore updated in body of loop.
lose "int"
please use code tags when posting code.
Arduino Forum > Using Arduino > Programming Questions > While loop
arduino
Comments
Post a Comment