LcdInterface.CreateFromShiftRegister 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.
Creates a ShiftRegister based interface for the LCD.
public static Iot.Device.CharacterLcd.LcdInterface CreateFromShiftRegister (int registerSelectPin, int enablePin, int[] dataPins, int backlightPin = -1, Iot.Device.Multiplexing.ShiftRegister? shiftRegister = default, bool shouldDispose = true);
static member CreateFromShiftRegister : int * int * int[] * int * Iot.Device.Multiplexing.ShiftRegister * bool -> Iot.Device.CharacterLcd.LcdInterface
Public Shared Function CreateFromShiftRegister (registerSelectPin As Integer, enablePin As Integer, dataPins As Integer(), Optional backlightPin As Integer = -1, Optional shiftRegister As ShiftRegister = 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.
- shiftRegister
- ShiftRegister
The shift register that drives the LCD.
- shouldDispose
- Boolean
True to dispose the shift register.
Returns
Remarks
Pin parameters should be set according to which output pin of the shift register they are connected to (e.g. 0 to 7 for 8bit shift register).