Running the Blinky App

Next, you’ll deploy the Netduino app to the Netduino and watch it run.

By default, Visual Studio runs projects in an emulator. This allows software developers to create and test programming logic for a new hardware product before the actual hardware is built. You won’t use the emulator since you have a real Netduino, so you must let Visual Studio know that you have physical hardware it should use instead.

Click on the Project menu and select your project’s properties (generally, the last item in the Projects menu, such as Blinky Properties). Next, do the following:

  1. When the project properties appear, click on the .NET Micro Framework category on the left side.

  2. Now you’re ready to change the deployment target from the Emulator to the Netduino. Change the Transport from Emulator to USB and then make sure that the Device selection box shows your Netduino, as shown in Figure 3-3. If it doesn’t, unplug and reattach your Netduino.

Note

If you’re using a Netduino Plus, the target name will be different. So if you need to switch between deploying to a Netduino and Netduino Plus, you’ll need to return to the project properties and change the Device setting to the device you want to deploy to.

Now, you’re ready to run the project. When you run the project, your code is deployed to the Netduino and then automatically started. To run your project, click the Start Debugging button in the toolbar at the top of the screen. It looks like the Play button on a music player. You could ...

Get Getting Started with Netduino now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.