LED example

using System; //use base classes
using System.Threading; //use threading classes
using Microsoft.SPOT; //use smart personal objects technology classes
using Microsoft.SPOT.Hardware; //use hardware related SPOT classes
using SecretLabs.NETMF.Hardware; //use Secret Labs hardware framework
using SecretLabs.NETMF.Hardware.Netduino; //use the Netduino specific classes
namespace NCIR01 /// Define the namespace we are

Define the namespace we are in ///
{
public class Program
{
public static void Main() /// The Main loop (run at power up) ///
{{
/// Setup Portion of Program, runs once at
/// Setup Portion of Program, runs once at ///

OutputPort led = new OutputPort(Pins.GPIO_PIN_D13, false);
//define our LED as being connected to pin 13

This entry was posted in .Net Micro. Bookmark the permalink.