I need to write a program ( using PICBASIC PRO) and in this program I need to read the state of a pin ( either high or low) , store it, wait about five minutes, read the state of the pin again, and compare the two states ( same pin) . Is this best accomplished using the BUTTON command, or can I store the state of a pin as a variable, or what?
Bookmarks