Create a new Netduino project, add Netduino.Foundation via Nuget, plug an LED as shown in the circuit, and add the following code:
Netduino.Foundation has built in support for most common sensors, motors, and other peripherals available on the market.
Peripheral drivers simplify common tasks with built in functionality, exposed by a clean, modern API.
Join other folks building cool connected things projects with Netduino.Foudation in the Wilderness Labs community. Get help, or pay it forward.