![]() |
Toggle Motor On & Off Help.....
Hello, does anyone know how to program in MPLab this thing... We want pwm02 to turn on if p3_sw_trig was hit. Then, if it's hit again, to shut pwm02 off. Basically like an on or off button. Any help would be greatly appreciated. Thank You.
|
Re: Toggle Motor On & Off Help.....
This involves storing the last state of your button, something like this:
Code:
void Run_Motor_Button (void) |
| All times are GMT -5. The time now is 18:26. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi