thank you for your answer. This is the program.generated.cs file.
//------------------------------------------------------------------------------
// <auto-generated>
// Il codice è stato generato da uno strumento.
// Versione runtime:4.0.30319.296
//
// Le modifiche apportate a questo file possono provocare un comportamento non corretto e andranno perse se
// il codice viene rigenerato.
// </auto-generated>
//------------------------------------------------------------------------------
namespace GadgeteerApp1 {
using Gadgeteer;
using GTM = Gadgeteer.Modules;
public partial class Program : Gadgeteer.Program {
private Gadgeteer.Modules.GHIElectronics.SDCard sdCard;
private Gadgeteer.Modules.GHIElectronics.UsbClientDP usbClientDP;
private Gadgeteer.Modules.GHIElectronics.Extender extender;
private Gadgeteer.Modules.GHIElectronics.Ethernet_J11D ethernet_J11D;
private Gadgeteer.Modules.GHIElectronics.IO60P16 io60p16;
private Gadgeteer.Modules.Seeed.CellularRadio cellularRadio;
public static void Main() {
// Important to initialize the Mainboard first
Program.Mainboard = new GHIElectronics.Gadgeteer.FEZSpider();
Program p = new Program();
p.InitializeModules();
p.ProgramStarted();
// Starts Dispatcher
p.Run();
}
private void InitializeModules() {
this.usbClientDP = new GTM.GHIElectronics.UsbClientDP(1);
this.cellularRadio = new GTM.Seeed.CellularRadio(4);
this.sdCard = new GTM.GHIElectronics.SDCard(5);
this.ethernet_J11D = new GTM.GHIElectronics.Ethernet_J11D(7);
this.extender = new GTM.GHIElectronics.Extender(11);
this.io60p16 = new GTM.GHIElectronics.IO60P16(14);
}
}
}
These are the includes:
using System;
using System.Collections;
using System.Threading;
using System.IO;
using System.Xml;
using Microsoft.SPOT;
using Microsoft.SPOT.Presentation;
using Microsoft.SPOT.Presentation.Controls;
using Microsoft.SPOT.Presentation.Media;
using Microsoft.SPOT.Touch;
using Microsoft.SPOT.Net.NetworkInformation;
using Gadgeteer.Networking;
using GT = Gadgeteer;
using GTM = Gadgeteer.Modules;
using Gadgeteer.Modules.GHIElectronics;
using GHI.Premium.Net;
using System.Text;
using GHI.Premium.Hardware;
And these is the code I am not able to compile:
IO60P16.OutputPort io60p16_outport;
IO60P16.InputPort io60p16_inport;
IO60P16.PWM io60p16_pwm;
io60p16_pwm = new IO60P16.PWM(IO60P16.PWMPin.PWM0, IO60P16.PWM.TickWidth.TickWidth_32KHz_31520ns);
io60p16_outport = new IO60P16.OutputPort(IO60P16.IOPin.Port1_Pin7, false);
io60p16_inport = new IO60P16.InputPort(IO60P16.IOPin.Port1_Pin6, IO60P16.ResistorMode.ResistivePullUp);
The error is something like this (translated from italian):
‘Gadgeteer.Modules.GHIElectronics.IO60P16.InputPort’ does not contain a constructor that accepts two arguments.
Gosh! :-[
I read all the topics regarding this module and I did not realize that there are two different drivers. I thought there was only one driver in different versions!
No, I don’t believe they have ever added this capability. My driver has it but I’ll warn you that this module has been nothing but a headache for almost everyone that has tried to use it.
You can get my driver here if you want to try it out:
If you do decide to pursue the DL40 route, I have a DL40 IO firmware that you can load onto the DL40 and a corresponding NETMF module driver, this gives you the ability to create interrupt pins, input/output pins, analog pins and PWN pins all from managed code on .NETMF. A few others in these forums have used it with success for handling interrupts, the nice thing with the DL40 is that all the pins can have interrupts so there is no shortage there.