LcdInterface.CreateGpio Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for