Toolbox.NETMF.Hardware.IntegratedGPI

This class inherits all properties of Toolbox.NETMF.Hardware.IGPIPort


Toolbox.NETMF.Hardware.IntegratedGPI(Pin, GlitchFilter, ResistorMode)
  • Pin The pin number
  • GlitchFilter Turns on or off the glitchfilter (optional)
  • ResistorMode Selects the resistor mode (optional)

Sample code in C#

IGPIPort Pin = new IntegratedGPI(Pins.GPIO_PIN_D0);

while (true)
{
    Debug.Print(Pin.Read().ToString());
    Thread.Sleep(1000);
}

Sample code in VB

Dim Pin as IGPIPort = new IntegratedGPI(Pins.GPIO_PIN_D0)

Do
    Debug.Print(Pin.Read().ToString())
    Thread.Sleep(1000)
Loop

Last edited Dec 29, 2012 at 7:43 AM by Garrcomm, version 2