On the FRDM-KL25Z, when I declare pins PTA5 and PTD2 as PwmOut pins, they are locked together and can not be independently controlled. It doesn't matter if I change the PWM of PTA5 or PTD2. Whichever one is changed, the other one follows it. The simple code below should keep pin PTD2 at 0% pwm while pin PTA5 should switch between 50% and 0% every 0.5 seconds. Pin PTA5 does alternate between 50% and 0% pwm, but instead of staying at 0% pwm, pin PTD2 follows pin PTA5.
Fork of frdm_rgbled by
Changes
Revision | Date | Who | Commit message |
---|---|---|---|
9:76be39e5d5ab | 2016-07-08 | skanderian | Test PwmOut of pins PTA5 and PTD2 |
8:47c89e2ae2e6 | 2016-05-13 | skanderian | Digital equivalent of an RC filter where the inputs are three random numbers and the output is the intensity of the built in RGB LEDs. |
7:ad8295723268 | 2014-07-16 | sam_grove | update formatting and mbed library |
6:5751df402557 | 2014-02-21 | sam_grove | update mbed lib |
5:14891bb08b35 | 2014-02-20 | Kojto | frdm_rgb_led - initial version |
4:0b2084fce8c7 | 2013-02-19 | mbed_official | Updated to public library |
3:35c85e1dd41a | 2012-11-13 | mbed_official | First revision |
2:03e5c29343d1 | 2012-10-23 | emilmont | Update mbed library |
1:eabc6f5b51d6 | 2012-10-12 | chris | Made thisi an HSV example |
0:cf8a48b1fb23 | 2012-10-11 | chris | First revision |