Class Sh1106
Represents the Sh1106 family of displays (up to 132 x 64)
Assembly: Sh110x.dll
View Source
Declaration
public class Sh1106 : Sh110x, IPixelDisplay, IDisplay, ISpiPeripheral, II2cPeripheral, IDisposable
Inheritance: System.Object
-> Meadow.Foundation.Displays.Sh110x
Implements:
Meadow.Peripherals.Displays.IPixelDisplay
, Meadow.Peripherals.Displays.IDisplay
, Meadow.Hardware.ISpiPeripheral
, Meadow.Hardware.II2cPeripheral
, System.IDisposable
Methods
Initialize()
Initialize the Sh1106
View Source
Declaration
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
Declaration
public override void SetDisplayOffsets(byte startLine = 0, byte offset = 0)
Parameters
Type | Name | Description |
---|---|---|
System.Byte | startLine | Line number in display RAM to display at the top of the screen |
System.Byte | offset | Column number in display RAM to offset the screen |
Implements
Meadow.Peripherals.Displays.IPixelDisplay
Meadow.Peripherals.Displays.IDisplay
Meadow.Hardware.ISpiPeripheral
Meadow.Hardware.II2cPeripheral
System.IDisposable