Table of Contents

Class Gdew0154m09

Namespace
Iot.Device.EPaper.Drivers.Jd796xx
Assembly
Iot.Device.ePaper.dll

A driver class for the GDEW0154M09 display controller.

public class Gdew0154m09 : Jd79653A, IEPaperDisplay
Inheritance
Gdew0154m09
Implements
Inherited Members

Constructors

Gdew0154m09(SpiDevice, int, int, int, GpioController, bool, bool)

Initializes a new instance of the Gdew0154m09 class.

public Gdew0154m09(SpiDevice spiDevice, int resetPin, int busyPin, int dataCommandPin, GpioController gpioController = null, bool enableFramePaging = false, bool shouldDispose = true)

Parameters

spiDevice SpiDevice

The communication channel to the GDEW0154M09-based dispay.

resetPin int

The reset GPIO pin. Passing an invalid pin number such as -1 will prevent this driver from opening the pin. Caller should handle hardware resets.

busyPin int

The busy GPIO pin.

dataCommandPin int

The data/command GPIO pin.

gpioController GpioController

The GpioController to use when initializing the pins.

enableFramePaging bool

Page the frame buffer and all operations to use less memory.

shouldDispose bool

True to dispose the Gpio Controller.

Remarks

For a 200x200 GDEW0154M09 display, a full Frame requires about 5KB of RAM ((200 * 200) / 8). If you can't guarantee 5KB to be available to the driver then enable paging by setting enableFramePaging to true. A page uses about 1KB (5KB / PagesPerFrame).

Exceptions

ArgumentNullException

spiDevice is null.

ArgumentOutOfRangeException

Display width and height can't be less than 0 or greater than 200.

Properties

PagesPerFrame

Gets the number of pages in every frame buffer.

protected override int PagesPerFrame { get; }

Property Value

int