Lcd1602 Constructors
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
Lcd1602(LcdInterface) |
Constructs a new 16x2 LCD controller with the given interface |
Lcd1602(I2cDevice) | |
Lcd1602(I2cDevice, Boolean) |
Constructs a new HD44780 based 16x2 LCD controller with integrated I2c support. |
Lcd1602(Int32, Int32, Int32[], Int32, Single, Int32, GpioController) | |
Lcd1602(Int32, Int32, Int32[], Int32, Single, Int32, GpioController, Boolean) |
Constructs a new HD44780 based 16x2 LCD controller, using GPIO pins. |
Lcd1602(LcdInterface)
Constructs a new 16x2 LCD controller with the given interface
public Lcd1602 (Iot.Device.CharacterLcd.LcdInterface lcdInterface);
new Iot.Device.CharacterLcd.Lcd1602 : Iot.Device.CharacterLcd.LcdInterface -> Iot.Device.CharacterLcd.Lcd1602
Public Sub New (lcdInterface As LcdInterface)
Parameters
- lcdInterface
- LcdInterface
The LCD Interface
Applies to
Lcd1602(I2cDevice)
public Lcd1602 (System.Device.I2c.I2cDevice device);
new Iot.Device.CharacterLcd.Lcd1602 : System.Device.I2c.I2cDevice -> Iot.Device.CharacterLcd.Lcd1602
Public Sub New (device As I2cDevice)
Parameters
- device
- I2cDevice
Applies to
Lcd1602(I2cDevice, Boolean)
Constructs a new HD44780 based 16x2 LCD controller with integrated I2c support.
public Lcd1602 (System.Device.I2c.I2cDevice device, bool uses8Bit = true);
new Iot.Device.CharacterLcd.Lcd1602 : System.Device.I2c.I2cDevice * bool -> Iot.Device.CharacterLcd.Lcd1602
Public Sub New (device As I2cDevice, Optional uses8Bit As Boolean = true)
Parameters
- device
- I2cDevice
The I2c device for the LCD.
- uses8Bit
- Boolean
True if the device uses 8 Bit commands, false if it handles only 4 bit commands.
Remarks
This is for on-chip I2c support. For connecting via I2c GPIO expanders, use the GPIO constructor Lcd1602(Int32, Int32, Int32[], Int32, Single, Int32, GpioController, Boolean).
Applies to
Lcd1602(Int32, Int32, Int32[], Int32, Single, Int32, GpioController)
public Lcd1602 (int registerSelectPin, int enablePin, int[] dataPins, int backlightPin = -1, float backlightBrightness = 1, int readWritePin = -1, System.Device.Gpio.GpioController controller = default);
new Iot.Device.CharacterLcd.Lcd1602 : int * int * int[] * int * single * int * System.Device.Gpio.GpioController -> Iot.Device.CharacterLcd.Lcd1602
Public Sub New (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)
Parameters
- registerSelectPin
- Int32
- enablePin
- Int32
- dataPins
- Int32[]
- backlightPin
- Int32
- backlightBrightness
- Single
- readWritePin
- Int32
- controller
- GpioController
Applies to
Lcd1602(Int32, Int32, Int32[], Int32, Single, Int32, GpioController, Boolean)
Constructs a new HD44780 based 16x2 LCD controller, using GPIO pins.
public Lcd1602 (int registerSelectPin, int enablePin, int[] dataPins, int backlightPin = -1, float backlightBrightness = 1, int readWritePin = -1, System.Device.Gpio.GpioController? controller = default, bool shouldDispose = true);
new Iot.Device.CharacterLcd.Lcd1602 : int * int * int[] * int * single * int * System.Device.Gpio.GpioController * bool -> Iot.Device.CharacterLcd.Lcd1602
Public Sub New (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)
Parameters
- registerSelectPin
- Int32
The pin that controls the regsiter 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