C# Class TinBot.Helpers.FirmataHelpers

显示文件 Open project: marcodiniz/TinBot

Public Properties

Property Type Description
_lock object

Public Methods

Method Description
AnalogWriteAwaitable ( this device, byte port, ushort value, int releaseTime = 1 ) : Task
DigitalPulseAwaitable ( this device, byte port, int duration = 1 ) : Task
DigitalWriteAwaitable ( this device, byte port, bool value, int releaseTime = 1 ) : Task
SafePinMode ( this device, byte pin, PinMode pinMode ) : void
SafePinMode ( this device, string pin, PinMode pinMode ) : void
ToPinState ( this value ) : PinState

Method Details

AnalogWriteAwaitable() public static method

public static AnalogWriteAwaitable ( this device, byte port, ushort value, int releaseTime = 1 ) : Task
device this
port byte
value ushort
releaseTime int
return Task

DigitalPulseAwaitable() public static method

public static DigitalPulseAwaitable ( this device, byte port, int duration = 1 ) : Task
device this
port byte
duration int
return Task

DigitalWriteAwaitable() public static method

public static DigitalWriteAwaitable ( this device, byte port, bool value, int releaseTime = 1 ) : Task
device this
port byte
value bool
releaseTime int
return Task

SafePinMode() public static method

public static SafePinMode ( this device, byte pin, PinMode pinMode ) : void
device this
pin byte
pinMode PinMode
return void

SafePinMode() public static method

public static SafePinMode ( this device, string pin, PinMode pinMode ) : void
device this
pin string
pinMode PinMode
return void

ToPinState() public static method

public static ToPinState ( this value ) : PinState
value this
return PinState

Property Details

_lock public_oe static_oe property

public static object _lock
return object