How can I store the status of a pin?


Closed Thread
Results 1 to 3 of 3
  1. #1

    Default How can I store the status of a pin?

    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?

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    You can store as a VAR
    VAR = PORTX.Z
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Aug 2005
    Location
    Michigan, USA
    Posts
    224


    Did you find this post helpful? Yes | No

    Default

    I agree with Dave.
    Last edited by Mike, K8LH; - 3rd December 2010 at 23:01.

Members who have read this thread : 1

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts