What does a while(!digitalRead(xxx))


hello,
i'm trying understand code, inside interruption , has structure:

code: [select]

while(!digitalread(buttonpin))
{
something happens
}


thank you!

you're on loop doing while waiting value on pin go high.


Arduino Forum > Using Arduino > Programming Questions > What does a while(!digitalRead(xxx))


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