Class Gdew0154m09
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
spiDeviceSpiDeviceThe communication channel to the GDEW0154M09-based dispay.
resetPinintThe reset GPIO pin. Passing an invalid pin number such as -1 will prevent this driver from opening the pin. Caller should handle hardware resets.
busyPinintThe busy GPIO pin.
dataCommandPinintThe data/command GPIO pin.
gpioControllerGpioControllerThe GpioController to use when initializing the pins.
enableFramePagingboolPage the frame buffer and all operations to use less memory.
shouldDisposeboolTrue 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
spiDeviceis 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; }