View Single Post
  #3   Spotlight this post!  
Unread 25-01-2009, 19:35
whitetiger0990's Avatar
whitetiger0990 whitetiger0990 is offline
Registered User
no team
Team Role: Programmer
 
Join Date: Mar 2006
Rookie Year: 2006
Location: Earth
Posts: 157
whitetiger0990 is a glorious beacon of lightwhitetiger0990 is a glorious beacon of lightwhitetiger0990 is a glorious beacon of lightwhitetiger0990 is a glorious beacon of lightwhitetiger0990 is a glorious beacon of light
Re: using a switch/button to turn on a motor

You want a Case Selector.

See attached for both cases. It sets it to 0 if off, else it to the speed control.
Attached Thumbnails
Click image for larger version

Name:	truecase.png
Views:	192
Size:	7.6 KB
ID:	7222  Click image for larger version

Name:	falsecase.png
Views:	156
Size:	7.4 KB
ID:	7223  
__________________
print$q=chr(ord($q)+$1)while("7443-0201-8465130105-12-03135-82482113-06-7672-070208-0613-70"=~/(-?\d\d)/g);
Reply With Quote