I found some netduino code to use with an RGB LED. The code uses a
PWM []
and each PWM has a method
.SetDutyCycle()
. The problem is, I can’t find the SetDutyCycle() method. Where do i find it? I have
Set()
and
SetPulse()
methods. Thanks!
PWM[] rgb = new PWM[]
{
new PWM((PWM.Pin)FEZ_Pin.PWM.Di5),
new PWM((PWM.Pin)FEZ_Pin.PWM.Di6),
new PWM((PWM.Pin)FEZ_Pin.PWM.Di10)
};
rgb[0].SetDutyCycle(100);
rgb[1].SetDutyCycle(0);
rgb[2].SetDutyCycle(0);
Thread.Sleep(3000);