Thread: Limit Switch
View Single Post
  #6   Spotlight this post!  
Unread 21-02-2010, 20:52
Twisted eric's Avatar
Twisted eric Twisted eric is offline
Registered User
FRC #0581
 
Join Date: Jan 2010
Location: San Jose
Posts: 54
Twisted eric is an unknown quantity at this point
Re: Limit Switch

Quote:
Originally Posted by KayyPii View Post
In the API, theres a class called, DigitalInput. Once you create the class and specified with GPIO to keep track of, you can use the get() function to keep track of the state of the switch. Then you can use it as the boolean expression for the "if" statement.


What is the "if" statement for the limit switch.