View Single Post
  #1   Spotlight this post!  
Unread 11-02-2007, 17:43
GeorgeC GeorgeC is offline
Registered User
FRC #1934
 
Join Date: Feb 2007
Location: London
Posts: 13
GeorgeC is an unknown quantity at this point
Limit Switch for PCM

Can anyone help with an easyC mindbender?

I've used all of my available spike relay controllers and programming limit switches using them in easyC was straightforward.

Now i need to control a motor using PWM and a limit switch but I can't think of how to code in a limit switch.

What I want to do is program something like if limit==0 then PWM1 ==<127. However in easyC I can't see the actual variable to assign my values to.

I guess that PWM outputs are to program drive motors which don't usually need limit switches.

Anyone got any ideas?