I updated my Netduino Plus 2 to the latest 4.2.2 firmware and tried the following code to flash the LED:
public static void Main() { OutputPort led = new OutputPort(Pins.ONBOARD_LED, false); while (true) { led.Write(true); Thread.Sleep(250); led.Write(false); Thread.Sleep(250); } }
When I start debugging the blue LED at the top right comes on for a few seconds, so I'm sure it's working, but will not flash as I expected. Stranger still, if I press the button on the board the LED does light up, and Windows makes a "USB device attached" sound. Seems like a simple enough test, any idea what I'm doing wrong?
Thanks,
James