Remarks

Ssd1680
Status Status badge: working
Source code GitHub
Datasheet(s) GitHub
NuGet package NuGet Gallery for Meadow.Foundation.Displays.ePaper

Code Example

MicroGraphics graphics;

public override Task Initialize()
{
    Resolver.Log.Info("Initialize ...");

    var display = new Ssd1680(
        spiBus: Device.CreateSpiBus(),
        chipSelectPin: Device.Pins.A04,
        dcPin: Device.Pins.A03,
        resetPin: Device.Pins.A02,
        busyPin: Device.Pins.A01,
        width: 122,
        height: 250);

    graphics = new MicroGraphics(display)
    {
        Rotation = RotationType._270Degrees
    };

    return base.Initialize();
}

public override Task Run()
{
    Resolver.Log.Info("Run ...");

    graphics.Clear();

    graphics.DrawRectangle(10, 40, 120, 60, Color.Black, true);
    graphics.DrawRectangle(20, 80, 120, 90, Color.Red, true);

    graphics.CurrentFont = new Font12x16();
    graphics.DrawText(2, 20, "Meadow F7", Color.Black);
    graphics.DrawText(30, 50, "Color", Color.Red);
    graphics.DrawText(50, 90, "Black", Color.Black);
    graphics.DrawText(50, 120, "White", Color.White);

    graphics.Show();

    return base.Run();
}

Sample project(s) available on GitHub

Characteristic Locus
Inheritance System.Object EPaperBase EPaperTriColorBase > Ssd1680
Implements IGraphicsDisplay
Inherited Members EPaperTriColorBase.EnabledColor EPaperTriColorBase.DisabledColor EPaperTriColorBase.ColorMode EPaperTriColorBase.SupportedColorModes EPaperTriColorBase.imageBuffer EPaperTriColorBase.Width EPaperTriColorBase.Height EPaperTriColorBase.PixelBuffer EPaperTriColorBase.CreateBuffer(Int32, Int32) EPaperTriColorBase.Clear(Boolean) EPaperTriColorBase.Fill(Color, Boolean) EPaperTriColorBase.Fill(Int32, Int32, Int32, Int32, Color) EPaperTriColorBase.Clear(Boolean, Boolean) EPaperTriColorBase.DrawPixel(Int32, Int32, Boolean) EPaperTriColorBase.DrawBlackPixel(Int32, Int32, Boolean) EPaperTriColorBase.InvertPixel(Int32, Int32) EPaperTriColorBase.DrawColoredPixel(Int32, Int32, Boolean) EPaperTriColorBase.DrawPixel(Int32, Int32, Color) EPaperTriColorBase.WriteBuffer(Int32, Int32, IPixelBuffer) EPaperTriColorBase.SendCommand(EPaperTriColorBase.Command) EPaperBase.commandBuffer EPaperBase.dataCommandPort EPaperBase.resetPort EPaperBase.chipSelectPort EPaperBase.busyPort EPaperBase.spiPeripheral EPaperBase.DataState EPaperBase.CommandState EPaperBase.Write(Byte) EPaperBase.Reset() EPaperBase.DelayMs(Int32) EPaperBase.SendCommand(Byte) EPaperBase.SendData(Int32) EPaperBase.SendData(Byte) EPaperBase.SendData(Byte[]) EPaperBase.WaitUntilIdle()
Namespace Meadow.Foundation.Displays
Assembly EPaper.dll

Syntax

public class Ssd1680 : EPaperTriColorBase, IGraphicsDisplay

Constructors

Ssd1680(ISpiBus, IDigitalOutputPort, IDigitalOutputPort, IDigitalOutputPort, IDigitalInputPort, Int32, Int32)

Create a new Ssd1680 ePaper display object

Declaration
public Ssd1680(ISpiBus spiBus, IDigitalOutputPort chipSelectPort, IDigitalOutputPort dataCommandPort, IDigitalOutputPort resetPort, IDigitalInputPort busyPort, int width, int height)

Parameters

Type Name Description
ISpiBus spiBus

SPI bus connected to display

IDigitalOutputPort chipSelectPort

Chip select output port

IDigitalOutputPort dataCommandPort

Data command output port

IDigitalOutputPort resetPort

Reset output port

IDigitalInputPort busyPort

Busy input port

System.Int32 width

Width of display in pixels

System.Int32 height

Height of display in pixels

Ssd1680(ISpiBus, IPin, IPin, IPin, IPin, Int32, Int32)

Create a new Ssd1680 object

Declaration
public Ssd1680(ISpiBus spiBus, IPin chipSelectPin, IPin dcPin, IPin resetPin, IPin busyPin, int width, int height)

Parameters

Type Name Description
ISpiBus spiBus

SPI bus connected to display

IPin chipSelectPin

Chip select pin

IPin dcPin

Data command pin

IPin resetPin

Reset pin

IPin busyPin

Busy pin

System.Int32 width

Width of display in pixels

System.Int32 height

Height of display in pixels

Properties

IsBlackInverted

Is black inverted on this display

Declaration
protected override bool IsBlackInverted { get; }

Property Value

Type Description
System.Boolean

Overrides

IsColorInverted

Is color inverted on this display

Declaration
protected override bool IsColorInverted { get; }

Property Value

Type Description
System.Boolean

Overrides

Methods

ClearFrame()

Clear the on-display frame buffer

Declaration
protected void ClearFrame()

Initialize()

Initialize the display

Declaration
protected override void Initialize()

Overrides

Show()

Send the display buffer to the display and refresh

Declaration
public override void Show()

Overrides

Show(Int32, Int32, Int32, Int32)

Send the display buffer to the display and refresh

Declaration
public override void Show(int left, int top, int right, int bottom)

Parameters

Type Name Description
System.Int32 left
System.Int32 top
System.Int32 right
System.Int32 bottom

Overrides