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.

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

Popular posts from this blog

Convierte tu Raspberry en un NAS. Firmware fvdw-sl 15.3 - Raspberry Pi Forums

How to format a Get Request

avrdude: verification error, first mismatch at byte 0x0000 0x0c != 0x62