Main Site Documentation

Using Gadgeteer dll with Mountaineer hw eth


#1

Hi

I have some problem using Gadgeteer dll to write a program with my hw.

I have try to use Gadgeteer.Interfaces.DigitalOutput to set an output on Socket 4, but I have some problem to undestand what kind of parameters is necessary to set.

DigitalOutput nino = new DigitalOutput(Gadgeteer .Socket 4,Gadgeteer .Socket .Pin 3, false , ________ “I dont’ know” );

I haven’t found on web and forum any example to read and learn.

Can you help me about this?

In general, I want to use Gadgeteer Namespaces to use my hw, is correct?

Many thanks.


#2

Try something like this but change to DigitalOutput instead of InterruptInput

        private InterruptInput _interrupt;
        private bool ready;
  

        void ProgramStarted()
        {
           
            _interrupt = new InterruptInput(GT.Socket.GetSocket(3, false, null, "Y"), GT.Socket.Pin.Three, GlitchFilterMode.On, ResistorMode.PullDown, InterruptMode.RisingAndFallingEdge, null);
            _interrupt.Interrupt += InterruptInterrupt;
        }

#3

@ scorpion1 - Please do not post the same question multiple times. I have already answered your other post.