class SSD1351 – Display Controller#

The SSD1351 class is used to initialize the SSD1351 OLED display controller. Pass an instance of this class as the controller argument to the SPIDisplay() class constructor.

Constructors#

class display.SSD1351#

Creates an SSD1351 display controller object.

init(display_controller: display.SPIDisplay) None#

Initializes the display controller. display_controller must provide a display.SPIDisplay.bus_write() method. Called by the parent display driver.

ram_write(display_controller: display.SPIDisplay) None#

Issues the write-to-RAM command (SSD1351.WRITE_RAM) on the display controller bus. display_controller must provide a display.SPIDisplay.bus_write() method.

display_on(display_controller: display.SPIDisplay) None#

Issues the display-on command (SSD1351.DISPLAY_ON) on the display controller bus. display_controller must provide a display.SPIDisplay.bus_write() method.

display_off(display_controller: display.SPIDisplay) None#

Issues the display-off command (SSD1351.DISPLAY_OFF) on the display controller bus. display_controller must provide a display.SPIDisplay.bus_write() method.

WRITE_RAM: int#

Write to display RAM command (0x5C).

SET_REMAP: int#

Set re-map / dual COM line mode command (0xA0).

DISPLAY_OFFSET: int#

Set display offset command (0xA2).

DISPLAY_OFF: int#

Set sleep mode on / display off command (0xAE).

DISPLAY_ON: int#

Set sleep mode off / display on command (0xAF).

PRECHARGE: int#

Set phase length / precharge command (0xB1).

DISPLAY_ENHANCEMENT: int#

Display enhancement command (0xB2).

CLOCK_DIV: int#

Set front clock divider / oscillator frequency command (0xB3).

PRECHARGE2: int#

Set second precharge period command (0xB6).

PRECHARGE_LEVEL: int#

Set precharge voltage level command (0xBB).

CONTRAST_ABC: int#

Set contrast for color A, B, C command (0xC1).

CONTRAST_MASTER: int#

Master contrast current control command (0xC7).

MUX_RATIO: int#

Set MUX ratio command (0xCA).

COMMAND_LOCK: int#

Set command lock command (0xFD).