Edit

Share via


LcdInterface.CreateGpio Method

Definition

Overloads

CreateGpio(Int32, Int32, Int32[], Int32, Single, Int32, GpioController)
CreateGpio(Int32, Int32, Int32[], Int32, Single, Int32, GpioController, Boolean)

Creates a GPIO based interface for the LCD.

CreateGpio(Int32, Int32, Int32[], Int32, Single, Int32, GpioController)

public static Iot.Device.CharacterLcd.LcdInterface CreateGpio (int registerSelectPin, int enablePin, int[] dataPins, int backlightPin = -1, float backlightBrightness = 1, int readWritePin = -1, System.Device.Gpio.GpioController controller = default);
static member CreateGpio : int * int * int[] * int * single * int * System.Device.Gpio.GpioController -> Iot.Device.CharacterLcd.LcdInterface
Public Shared Function CreateGpio (registerSelectPin As Integer, enablePin As Integer, dataPins As Integer(), Optional backlightPin As Integer = -1, Optional backlightBrightness As Single = 1, Optional readWritePin As Integer = -1, Optional controller As GpioController = Nothing) As LcdInterface

Parameters

registerSelectPin
Int32
enablePin
Int32
dataPins
Int32[]
backlightPin
Int32
backlightBrightness
Single
readWritePin
Int32
controller
GpioController

Returns

Applies to

CreateGpio(Int32, Int32, Int32[], Int32, Single, Int32, GpioController, Boolean)

Creates a GPIO based interface for the LCD.

public static Iot.Device.CharacterLcd.LcdInterface CreateGpio (int registerSelectPin, int enablePin, int[] dataPins, int backlightPin = -1, float backlightBrightness = 1, int readWritePin = -1, System.Device.Gpio.GpioController? controller = default, bool shouldDispose = true);
static member CreateGpio : int * int * int[] * int * single * int * System.Device.Gpio.GpioController * bool -> Iot.Device.CharacterLcd.LcdInterface
Public Shared Function CreateGpio (registerSelectPin As Integer, enablePin As Integer, dataPins As Integer(), Optional backlightPin As Integer = -1, Optional backlightBrightness As Single = 1, Optional readWritePin As Integer = -1, Optional controller As GpioController = Nothing, Optional shouldDispose As Boolean = true) As LcdInterface

Parameters

registerSelectPin
Int32

The pin that controls the register select.

enablePin
Int32

The pin that controls the enable switch.

dataPins
Int32[]

Collection of pins holding the data that will be printed on the screen.

backlightPin
Int32

The optional pin that controls the backlight of the display.

backlightBrightness
Single

The brightness of the backlight. 0.0 for off, 1.0 for on.

readWritePin
Int32

The optional pin that controls the read and write switch.

controller
GpioController

The controller to use with the LCD. If not specified, uses the platform default.

shouldDispose
Boolean

True to dispose the Gpio Controller

Returns

Applies to