I've been working through the Get Started with Netduino e-book using the Netduino Plus. All projects have worked fine until the "Mixing Colors" project in chapter 6. I've tried with the maker shield and with the breadboard and in both cases my RGB LED acts like its common is an anode rather than a cathode - i can't get the LED to light up unless i put a GIO_Pin_D9 (or 5 or 6) on the common with the ground on a leg (after a resistor). Do I need to initialize something? the code is simple:
public static void Main() { // write your code here PWM redLed = new PWM(Pins.GPIO_PIN_D9); PWM greenLed = new PWM(Pins.GPIO_PIN_D6); PWM blueLed = new PWM(Pins.GPIO_PIN_D5); redLed.SetDutyCycle(100); greenLed.SetDutyCycle(30); blueLed.SetDutyCycle(60); Thread.Sleep(Timeout.Infinite); }