G120HDR Gadgeteer programs

How can I create a Gadgeteer program for the G120HDR from scratch ?

G120HDR is a SOM not a gadgeteer board so you start a netmf console app and add the references you want to use.

use the cobra 2 board in gadgeteer.
sockets 1,2,3 are the same
spi is 6

Cobra II is based on G120 but G120HDR has no socket’s, cant be used as a gadgeteer project.

The HDR version does have gadgeteer sockets.
6 of them
1 of which is wireable by the user.
I have done this several times as the pinouts are the same as cobra II.
I have it running on my desk infront of me with a TE35 display and a ADC module in the spi socket.

It’s has socket’s for sure but you still need to wire them yourself (all off them in the V1) and for this reason only it’s not possible to use the sockets in a gadgeteer setup.
The project is unable to know what socket is wired to what pins. A console project is the only right approach imho.

@ steenis -

Every board can be a potential GADGETEER board. It only need to comply with the Project Template that is given by GHI when you install the Gadgeteer SDK (it is Call a mainboard project Template).

Personnaly, I made a gadgeteer board from the STM32F407 up which is not Gadgeteer by the way.

A Gadgeteer board is nothing but a Board with predefined SOCKETS mapped to PINS !

Thank you all for all these answers, BUT:
After defining a NETMF console application for the G120HDR:

  • which namespaces to add ?
  • which references to add ?
  • how to define the sockets ?
  • the necessary program components
    Can you give code snippets or maybe the complete code using socket X ?
    Most important of all: where can I find the information or documentation ?

As vou can see: this document does not answer my questions.
What is rtfm ?

RTFM is an short code for.
Read The Full Manual

@ HughB - :wink:

Which manual ???

@ steenis - as described on the product page, G120HDR is not a gadgeteer mainboard. It is simply a through hole version of G120 SoM.

It is programmed using pure NETMF so you can use the ebook to get started.

Ok, I’ve read it (I already did before). But none of my questions is answered.

using System;
using System.Threading;
using Microsoft.SPOT;
using Microsoft.SPOT.Hardware;

namespace LedLighting
    public class Program
        private static InterruptPort _pirPort;

        public static void Main()
            _pirPort = new InterruptPort(GHI.Hardware.G120.Pin.P2_13, true, Port.ResistorMode.PullUp, Port.InterruptMode.InterruptEdgeHigh);
            _pirPort.OnInterrupt += interruptPort_OnInterrupt;
        static void interruptPort_OnInterrupt(uint data1, uint data2, DateTime time)
1 Like

Yes, I am going to try this. Thank you.

@ steenis - FYI that code is for Pin 3 on the Blue socket…

@ Justin, I am sorry, but this is not what I want.

Let me put it this way:

For instance, I want to start with a Multicolorled gadgeteer module. Then, I have to wire the User-socket on the G120HDR as an X-socket and connect the gadgeteer module to this socket. Then I have to program the G120HDR to use the module.
Does anyone have a straightforward code-example for me, including the necessary namespaces and references and used by him or herself ?

Maybe, if I understand that, I can go further.

There is no straight forward way. You need a gadgeteer mainboard. Products listed under som are for a bit advanced users.

Anything under gadgeteer is straight forward plug and play.

@ andre.m

  1. this page gadgeteer.netmf.com does not exist.
  2. I need an example, please understand !!!

@ Gus
Why does the G120HDR has gadgeteer sockets if you cannot use gadgeteer modules ?