PinValue.Explicit Operator

Definition

Overloads

Explicit(PinValue to Boolean)

Conversion to byte. Returns true on High, false on Low

Explicit(PinValue to Byte)

Conversion to byte. Returns 1 on High, 0 on Low

Explicit(PinValue to Int32)

Conversion to int. Returns 1 on High, 0 on Low

Explicit(PinValue to Boolean)

Conversion to byte. Returns true on High, false on Low

public static explicit operator bool (System.Device.Gpio.PinValue value);
static member op_Explicit : System.Device.Gpio.PinValue -> bool
Public Shared Narrowing Operator CType (value As PinValue) As Boolean

Parameters

value
PinValue

PinValue to convert

Returns

Applies to

Explicit(PinValue to Byte)

Conversion to byte. Returns 1 on High, 0 on Low

public static explicit operator byte (System.Device.Gpio.PinValue value);
static member op_Explicit : System.Device.Gpio.PinValue -> byte
Public Shared Narrowing Operator CType (value As PinValue) As Byte

Parameters

value
PinValue

PinValue to convert

Returns

Applies to

Explicit(PinValue to Int32)

Conversion to int. Returns 1 on High, 0 on Low

public static explicit operator int (System.Device.Gpio.PinValue value);
static member op_Explicit : System.Device.Gpio.PinValue -> int
Public Shared Narrowing Operator CType (value As PinValue) As Integer

Parameters

value
PinValue

PinValue to convert

Returns

Applies to