Hey,
I'm trying to color an RGB led with 3 PWM channels. I can color the led a few colors but i'm not sure this is exactly what i want.
In my code i need to set a frequency and cycle duration. But what do they do? I set them 10000 and 0, and figured out that by changing the duty cycle i can color my leds a bit. Is it possible to make more colors by changing the frequency? Or how are these values working together?
static PWM ledR = new PWM(PWMChannels.PWM_PIN_D11, 10000, 0, false);
- Hunger89 likes this