Skip to main content

Module ssd13xx

Module ssd13xx 

Source
Expand description

SSD1306/SSD1309/SSD1315 OLED Screen

The SSD1306, SSD1309, and SSD1315 share their command set and 128x64 display RAM. The exact chip is selected through the Variant generic type parameter (Ssd1306, Ssd1309, or Ssd1315). Select the panel resolution with the WIDTH and HEIGHT const generics (128x64 by default). Panels narrower than 128 columns are assumed to be centered in the controller’s columns.

Both controllers can be attached over I2C (I2CTransport) or 4-wire SPI with a data/command pin (SpiTransport).

Structs§

I2CTransport
I2C transport for SSD13xx screens.
PanelConfig
How the panel is wired to the controller’s segment (column) and COM (row) lines. This depends on the display module, and decides the orientation of the image.
SpiTransport
4-wire SPI transport: the D/C̅ pin marks the transferred bytes as commands (low) or data (high).
Ssd13xx

Enums§

Command
DataKind
Whether bytes sent to the controller are commands or display data.
Ssd1306
The SSD1306 controller.
Ssd1309
The SSD1309 controller.

Constants§

BUFFER_SIZE

Traits§

Transport
Bus that connects the controller.
TransportClient
Variant
Settings that differ between the controllers this driver supports.

Type Aliases§

Ssd1315
The SSD1315 controller, which is compatible with the SSD1306.