Toolbox.NETMF.Hardware.IntegratedGPO

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


Toolbox.NETMF.Hardware.IntegratedGPO(Pin, InitialState)
  • Pin The pin number
  • InitialState It's initial state (Default: false)

Sample code in C#

IGPOPort Pin = new IntegratedGPO(Pins.GPIO_PIN_D0);

while (true)
{
    Pin.Write(!Pin.State);
    Thread.Sleep(1000);
}

Sample code in VB

Dim Pin as IGPOPort = new IntegratedGPO(Pins.GPIO_PIN_D0)

Do
    Pin.Write(Not Pin.State)
    Thread.Sleep(1000)
Loop

Last edited Dec 29, 2012 at 6:44 AM by Garrcomm, version 2