Edit

Share via


Pcd8544 Constructors

Definition

Overloads

Pcd8544(Int32, SpiDevice, Int32, PwmChannel, GpioController, Boolean)

Create Pcd8544

Pcd8544(Int32, SpiDevice, Int32, Int32, GpioController, Boolean)

Create Pcd8544

Pcd8544(Int32, SpiDevice, Int32, PwmChannel, GpioController, Boolean)

Create Pcd8544

public Pcd8544 (int dataCommandPin, System.Device.Spi.SpiDevice spiDevice, int resetPin = -1, System.Device.Pwm.PwmChannel? pwmBacklight = default, System.Device.Gpio.GpioController? gpioController = default, bool shouldDispose = true);
new Iot.Device.Display.Pcd8544 : int * System.Device.Spi.SpiDevice * int * System.Device.Pwm.PwmChannel * System.Device.Gpio.GpioController * bool -> Iot.Device.Display.Pcd8544
Public Sub New (dataCommandPin As Integer, spiDevice As SpiDevice, Optional resetPin As Integer = -1, Optional pwmBacklight As PwmChannel = Nothing, Optional gpioController As GpioController = Nothing, Optional shouldDispose As Boolean = true)

Parameters

dataCommandPin
Int32

The data command pin.

spiDevice
SpiDevice

The SPI device.

resetPin
Int32

The reset pin. Use a negative number if you don't want to use it

pwmBacklight
PwmChannel

The PWM channel for the back light

gpioController
GpioController

The GPIO Controller.

shouldDispose
Boolean

True to dispose the GPIO controller

Applies to

Pcd8544(Int32, SpiDevice, Int32, Int32, GpioController, Boolean)

Create Pcd8544

public Pcd8544 (int dataCommandPin, System.Device.Spi.SpiDevice spiDevice, int resetPin = -1, int backlightPin = -1, System.Device.Gpio.GpioController? gpioController = default, bool shouldDispose = true);
new Iot.Device.Display.Pcd8544 : int * System.Device.Spi.SpiDevice * int * int * System.Device.Gpio.GpioController * bool -> Iot.Device.Display.Pcd8544
Public Sub New (dataCommandPin As Integer, spiDevice As SpiDevice, Optional resetPin As Integer = -1, Optional backlightPin As Integer = -1, Optional gpioController As GpioController = Nothing, Optional shouldDispose As Boolean = true)

Parameters

dataCommandPin
Int32

The data command pin.

spiDevice
SpiDevice

The SPI device.

resetPin
Int32

The reset pin. Use a negative number if you don't want to use it

backlightPin
Int32

The pin back light

gpioController
GpioController

The GPIO Controller.

shouldDispose
Boolean

True to dispose the GPIO controller

Applies to