View Single Post
  #4   Spotlight this post!  
Unread 12-03-2006, 08:48
Kingofl337's Avatar
Kingofl337 Kingofl337 is offline
You didn't see anything....
AKA: Adam
FRC #0501 (Power Knights)
Team Role: Mentor
 
Join Date: Feb 2005
Rookie Year: 1998
Location: Manchester, NH
Posts: 861
Kingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond repute
Send a message via Yahoo to Kingofl337
Re: Pointers in EasyC

Why don't you just assign a variable to the PWM Control block?


PWM_01 = 160;

SetPWM ( 1 , PWM_01 ) ;

You can do the same with a relay.

Relay_1_FWD = 1;

SetRelay ( 1 , Relay_1_FWD , Relay_1_REV ) ;

Is that what your trying to do?
Attached Thumbnails
Click image for larger version

Name:	pwm.jpg
Views:	49
Size:	14.6 KB
ID:	4117  

Last edited by Kingofl337 : 12-03-2006 at 09:15.