![]() |
making a trigger a toggle
how can i set my relay on my controller to just turn a pwm port to on or off so that i dont have to hold down the trigger?
|
Re: making a trigger a toggle
Hi, I'll post below what I'm using right now... As a sidenote, I have two variables you'll need. One is name "port1_trigger" and the other "Lift."
Code:
void Lift_Control ( void )-Nathan |
Re: making a trigger a toggle
Code:
static char p1_trig_state = 1; |
Re: making a trigger a toggle
well, if you're trying to turn a motor/solenoid/whatever else on/off only, without variable speed, i would use a spike. the code is simple.
Code:
|
| All times are GMT -5. The time now is 03:59. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi