checking for the status of a pin

Hi,

How does one check the status (HIGH LOW) of a pin and use the result.

thanks steve

search Digital Read

you may get something like this.

murmsk: Hi,

How does one check the status (HIGH LOW) of a pin and use the result.

thanks steve

How about using a variable to keep track of the pin's state? Whenever you change the pin's state, also change the variable.

Use the result for what?

murmsk: How does one check the status (HIGH LOW) of a pin and use the result.

This is about as straight-forward as it gets