Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.

Stormstar

Member Since 08 Sep 2013
Offline Last Active Jun 04 2014 07:59 AM
-----

#52643 Help with PWM

Posted by Stormstar on 08 September 2013 - 03:09 PM

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);

 

 




home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.