Skip to main content

Class Sh1106

Represents the Sh1106 family of displays (up to 132 x 64)

Assembly: Sh110x.dll
View Source
public class Sh1106 : Sh110x, IGraphicsDisplay, ISpiPeripheral, II2cPeripheral, IDisposable

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

Implements:
Meadow.Foundation.Graphics.IGraphicsDisplay, Meadow.Hardware.ISpiPeripheral, Meadow.Hardware.II2cPeripheral, System.IDisposable

Methods

Initialize()

Initialize the Sh1106

View Source
protected override void Initialize()

SetDisplayOffsets(byte, byte)

This varies between manufacturers If the display is misaligned horizontally, try offset values like 0x00, 0x20, 0x40, etc. If the display is misaligned vertically, try offset values like 0x00, 0x20, 0x40, etc.

View Source
public override void SetDisplayOffsets(byte startLine = 0, byte offset = 0)
Parameters
TypeNameDescription
System.BytestartLineLine number in display RAM to display at the top of the screen
System.ByteoffsetColumn number in display RAM to offset the screen

Implements