[#XDUINO] Arduino vs Netduino vs Gadgeteer (V) example with Gadgeteer



  1. Introduction. https://elbruno.com/2013/07/13/xduino-arduino-vs-netduino-vs-gadgeteer-i/
  2. Example with Arduino. https://elbruno.com/2013/07/15/xduino-arduino-vs-netduino-vs-netgadgeeter-ii-usamos-el-arduino/
  3. Starting with Netduino. https://elbruno.com/2013/07/16/xduino-arduino-vs-netduino-vs-netgadgeeter-iii-empezamos-con-netduino/
  4. Example with Netduino. https://elbruno.com/2013/07/17/xduino-arduino-vs-netduino-vs-gadgeteer-iii-el-ejemplo-con-netduino/


After the example of the Arduino and the Netduino, today’s up to .net Gadgeteer. We have the same problem as with NETMFGadgeteer, there isn’t an official SDK for Visual Studio 2012. However the solution is similar to the ofNETMF 4.2, I explained it in this post and allows us to have .net Gadgeteer projects in our New Projects of Visual Studio 2012 window (the official link is this).


Before turning to the draft code, let’s review the hardware we use for example est.

Once the project is created, we will add to it the following items,

  • FES main Board
  • Power Supply
  • Button
  • Multicolor LED

in the case of Gadgeteer is way graphic with a DSL editor


Then the code is quite simple

   1: using GT = Gadgeteer;

   2: using GTM = Gadgeteer.Modules;


   4: namespace GadgeteerApp2

   5: {

   6:     public partial class Program

   7:     {

   8:         private bool _ledOn;


  10:         void ProgramStarted()

  11:         {

  12:             button.ButtonPressed += button_ButtonPressed;

  13:         }


  15:         void button_ButtonPressed(GTM.GHIElectronics.Button sender, GTM.GHIElectronics.Button.ButtonState state)

  16:         {

  17:             if (_ledOn)

  18:             {

  19:                 multicolorLed.TurnRed();

  20:             }

  21:             else

  22:             {

  23:                 multicolorLed.TurnOff();

  24:             }

  25:             _ledOn = !_ledOn;

  26:         }

  27:     }

  28: }

In this case treatment of the LED is a bit special since I have a multi-colored LED. For example, I put it online or OFF.

And ready the last example, tomorrow a little test adapting Groove of Arduino for Gadgeteer sensors.



  • Install .net Gadgeteer for VS2012

Saludos @ Home

El Bruno

image image image Google

1 comment

Leave a comment

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: