Quote:
Originally Posted by team877
the Setpwm (1, x) is a window that you put your variable in so "x" is set to the value of pwm 1
|
Isn't it the other way around? As an output function,
SetPwm( 1, x ) sets pwm 1 to the value of
x. I'm not aware of a built-in way to
read the present value of a pwm output using easyC.
So where in your program do you actually control the pwm output that you want to use as the trigger for your relay?