24 October, 2011

Netduino: HelloWorld

I have always found it intriguing to be able to motion the physical world from your PC. Due to this reason – I’ve invested in a Netduino microcontroller (from the UK) which runs the .NET Microframework and therefore programmed in C#.

Every new technology is best learned by writing the famous “Hello World” sample for this technology which is also the case here. Below is the very few lines needed to make the onboard LED flash in a blinking fashion (as long as it is powered ;-)).

image       image


using System.Threading;
using Microsoft.SPOT.Hardware;
using SecretLabs.NETMF.Hardware.Netduino;

namespace HelloLED
public class Program
public static void Main()
//init ports
var port = new OutputPort(Pins.ONBOARD_LED, false);
bool on = true;

while (true)
on = !on; //invert value
How easy can it get…?

Link: http://www.netduino.com/

1 comment:

damion said...

70-740 exam dumps - It’s now just a piece of cake! Rely on Marks4sure’s easy 70-740 Questions Answers that can give you first time success with 100% money back guarantee! Thousands of IT professional have already been benefited with the marvelous 70-740 Q&As and have obtained their dream certification.

iPhone/XCode - not all cases are equal!

This bit me! Having made some changes to an iPhone application (Obj-C); everything worked fine in the simulator. But, when deploying the s...