Thread
:
Programming Limit Switch
View Single Post
#
2
16-01-2014, 20:14
NWChen
Alum
no team
Join Date: Oct 2012
Rookie Year: 2012
Location: New York City
Posts: 205
Re: Programming Limit Switch
Initialize limit switches as a digital input:
Code:
DigitalInput switch = new DigitalInput(channel)
To check if a switch is closed or not, use the get() method:
Code:
if(switch.get()) doSomething();
See
this thread.
NWChen
View Public Profile
Find all posts by NWChen
Find CD-Media Photos by NWChen
Find CD-Media Papers by NWChen