Edit

Share via


Board.TryCreateBestGpioDriver Method

Definition

Tries to create the best possible GPIO driver for this hardware.

protected virtual System.Device.Gpio.GpioDriver? TryCreateBestGpioDriver ();
abstract member TryCreateBestGpioDriver : unit -> System.Device.Gpio.GpioDriver
override this.TryCreateBestGpioDriver : unit -> System.Device.Gpio.GpioDriver
Protected Overridable Function TryCreateBestGpioDriver () As GpioDriver

Returns

An instance to the optimal Gpio Driver for this board, or null if none was found

Remarks

The base implementation will never return null, but create a dummy instance instead

Applies to