Skip to main content

Class EPaperBase

Represents a base ePaper display driver

Assembly: EPaper.dll
View Source
Declaration
public abstract class EPaperBase : ISpiPeripheral, IDisposable

Derived:
Meadow.Foundation.Displays.EPaperMonoBase

Implements:
Meadow.Hardware.ISpiPeripheral, System.IDisposable

Properties

DefaultSpiBusSpeed

The default SPI bus speed for the device

View Source
Declaration
public Frequency DefaultSpiBusSpeed { get; }

SpiBusSpeed

The SPI bus speed for the device

View Source
Declaration
public Frequency SpiBusSpeed { get; set; }

DefaultSpiBusMode

The default SPI bus mode for the device

View Source
Declaration
public SpiClockConfiguration.Mode DefaultSpiBusMode { get; }

SpiBusMode

The SPI bus mode for the device

View Source
Declaration
public SpiClockConfiguration.Mode SpiBusMode { get; set; }

IsDisposed

Is the object disposed

View Source
Declaration
public bool IsDisposed { get; }

Fields

commandBuffer

The command buffer

View Source
Declaration
protected readonly byte[] commandBuffer

dataCommandPort

Data command port

View Source
Declaration
protected IDigitalOutputPort? dataCommandPort

resetPort

Reset port

View Source
Declaration
protected IDigitalOutputPort? resetPort

chipSelectPort

Chip select port

View Source
Declaration
protected IDigitalOutputPort? chipSelectPort

busyPort

Busy indicator port

View Source
Declaration
protected IDigitalInputPort? busyPort

spiComms

SPI Communication bus used to communicate with the peripheral

View Source
Declaration
protected ISpiCommunications? spiComms

DataState

Const bool representing the data state

View Source
Declaration
protected const bool DataState = true

CommandState

Const bool representing the command state

View Source
Declaration
protected const bool CommandState = false

createdPorts

Did we create the port(s) used by the peripheral

View Source
Declaration
protected bool createdPorts

Methods

Write(byte)

Write a value to the display

View Source
Declaration
protected void Write(byte value)
Parameters
TypeNameDescription
System.BytevalueThe value as a byte

Reset()

Reset the display

View Source
Declaration
protected virtual void Reset()

DelayMs(int)

Delay for a specified amount of time

View Source
Declaration
protected void DelayMs(int millseconds)
Parameters
TypeNameDescription
System.Int32millsecondsThe time in milliseconds

SendCommand(byte)

Send a command to the display

View Source
Declaration
protected void SendCommand(byte command)
Parameters
TypeNameDescription
System.BytecommandThe command value

SendData(int)

Send data to the display

View Source
Declaration
protected void SendData(int data)
Parameters
TypeNameDescription
System.Int32dataThe data (is cast to a byte)

SendData(byte)

Send data to the display

View Source
Declaration
protected void SendData(byte data)
Parameters
TypeNameDescription
System.BytedataThe data

SendData(byte[])

Send data to the display

View Source
Declaration
protected void SendData(byte[] data)
Parameters
TypeNameDescription
System.Byte[]dataThe data

WaitUntilIdle()

Wait until the display is idle (not busy)

View Source
Declaration
protected virtual void WaitUntilIdle()

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

View Source
Declaration
public void Dispose()

Dispose(bool)

Dispose of the object

View Source
Declaration
protected virtual void Dispose(bool disposing)
Parameters
TypeNameDescription
System.BooleandisposingIs disposing

Implements

  • Meadow.Hardware.ISpiPeripheral
  • System.IDisposable