Skip to main content

Class Epd7in5V2

Represents an WaveShare Epd7in5 v2 ePaper display 800x480, 7.5inch e-Ink display, SPI interface

Assembly: ePaperWaveShare.dll​
View Source​
Declaration
public class Epd7in5V2 : EPaperBase, ISpiPeripheral, IDisposable, IPixelDisplay, IDisplay

Inheritance: System.Object -> Meadow.Foundation.Displays.EPaperBase

Implements:
Meadow.Hardware.ISpiPeripheral, System.IDisposable, Meadow.Peripherals.Displays.IPixelDisplay, Meadow.Peripherals.Displays.IDisplay

Properties​

ColorMode​

The currently set color mode for the display

View Source​
Declaration
public ColorMode ColorMode { get; protected set; }

SupportedColorModes​

The Color mode supported by the display

View Source​
Declaration
public ColorMode SupportedColorModes { get; }

PixelBuffer​

Provide a buffer that matches this display's color depth, height, and width This should be the buffer that is sent to the device when Show is called

View Source​
Declaration
public IPixelBuffer PixelBuffer { get; }

EnabledColor​

The color to draw when a pixel is enabled

View Source​
Declaration
public Color EnabledColor { get; }

DisabledColor​

The color to draw when a pixel is disabled

View Source​
Declaration
public Color DisabledColor { get; }

Width​

Width of display in pixels

View Source​
Declaration
public int Width { get; }

Height​

Height of display in pixels

View Source​
Declaration
public int Height { get; }

MinimumRefreshInterval​

The minimum delay required by the hardware between screen redraws

View Source​
Declaration
public TimeSpan MinimumRefreshInterval { get; }

Fields​

imageBuffer​

Buffer to hold display data

View Source​
Declaration
protected IPixelBuffer imageBuffer

Methods​

Initialize()​

Initialize the display driver

View Source​
Declaration
protected void Initialize()

Clear(bool)​

Clear display buffer

View Source​
Declaration
public void Clear(bool updateDisplay = false)
Parameters​
TypeNameDescription
System.BooleanupdateDisplayforce display update

Clear(bool, bool)​

Clear the display

View Source​
Declaration
public void Clear(bool enabled, bool updateDisplay = false)
Parameters​
TypeNameDescription
System.BooleanenabledSet the display to the enabled or disabled color (defaults are black and white)
System.BooleanupdateDisplayUpdate the display once the buffer has been cleared when true

Fill(Color, bool)​

Clear the display

View Source​
Declaration
public void Fill(Color color, bool updateDisplay = false)
Parameters​
TypeNameDescription
Meadow.ColorcolorColor to set the display
System.BooleanupdateDisplayUpdate the display once the buffer has been cleared when true

Fill(int, int, int, int, Color)​

Fill the display buffer with a color

View Source​
Declaration
public void Fill(int x, int y, int width, int height, Color color)
Parameters​
TypeNameDescription
System.Int32xx location in pixels to start fill
System.Int32yy location in pixels to start fill
System.Int32widthwidth in pixels to fill
System.Int32heightheight in pixels to fill
Meadow.Colorcolorcolor to fill

DrawPixel(int, int, bool)​

Draw a single pixel

View Source​
Declaration
public void DrawPixel(int x, int y, bool enabled)
Parameters​
TypeNameDescription
System.Int32xx location
System.Int32yy location
System.BooleanenabledTurn the pixel on (true) or off (false)

DrawPixel(int, int, Color)​

Draw a single pixel

View Source​
Declaration
public void DrawPixel(int x, int y, Color color)
Parameters​
TypeNameDescription
System.Int32xx location
System.Int32yy location
Meadow.ColorcolorColor of pixel

InvertPixel(int, int)​

Invert color of pixel

View Source​
Declaration
public void InvertPixel(int x, int y)
Parameters​
TypeNameDescription
System.Int32xx coordinate of pixel
System.Int32yy coordinate of pixel

WriteBuffer(int, int, IPixelBuffer)​

Draw a buffer at a specific location

View Source​
Declaration
public void WriteBuffer(int x, int y, IPixelBuffer displayBuffer)
Parameters​
TypeNameDescription
System.Int32xx location in pixels
System.Int32yy location in pixels
Meadow.Peripherals.Displays.IPixelBufferdisplayBuffer

Reset()​

Reset the display

View Source​
Declaration
protected override void Reset()

SetPartialWindow(int, int, int, int)​

Set partial address window to update display

View Source​
Declaration
protected void SetPartialWindow(int x, int y, int width, int height)
Parameters​
TypeNameDescription
System.Int32xX start position in pixels
System.Int32yY start position in pixels
System.Int32widthWidth in pixels
System.Int32heightHeight in pixels

Show()​

Copy the display buffer to the display If called more frequently than every 3 seconds, a not supported exception will be thrown

View Source​
Declaration
public void Show()
Exceptions​

System.NotSupportedException
Thrown if called more frequently than every 3 seconds

Show(int, int, int, int)​

Copy the display buffer to the display for a set region If called more frequently than every 3 seconds, a not supported exception will be thrown

View Source​
Declaration
public void Show(int left, int top, int right, int bottom)
Parameters​
TypeNameDescription
System.Int32leftleft bounds of region in pixels
System.Int32toptop bounds of region in pixels
System.Int32rightright bounds of region in pixels
System.Int32bottombottom bounds of region in pixels
Exceptions​

System.NotSupportedException
Thrown if called more frequently than every 3 seconds

DisplayFrame()​

Send a refresh command to the display Does not transfer new data

View Source​
Declaration
public void DisplayFrame()

Sleep()​

Set the device to low power mode

View Source​
Declaration
protected void Sleep()

Implements​

  • Meadow.Hardware.ISpiPeripheral
  • System.IDisposable
  • Meadow.Peripherals.Displays.IPixelDisplay
  • Meadow.Peripherals.Displays.IDisplay