|
Re: Help needed with algorithm
Print out the values of i, and out and see if they are what you expect.
Make sure the value being passed to the COS function is in the right form (degrees, radians, gradian).
LED's are typically on/off. Passing continuous PWM values could have unexpected results for values not near full on or full off.
|