Go Down

Topic: LED on/off (Read 3 times) previous topic - next topic

ted

This line produces PWM sine to PBA 7, how to make it turn on the LED at C13 when the sine is positive and turn it off when the sinus  is negative?

val2 = 50 + amp / 10.0 * sin (stp * i + shift * 0.1 * 6.2831 / 360);

Go Up