adafruit_displayio_sh1106

DisplayIO compatible library for SH1106 OLED displays

  • Author(s): ladyada

Implementation Notes

Hardware:

Software and Dependencies:

class adafruit_displayio_sh1106.SH1106(*args: Any, **kwargs: Any)

SH1106 driver for use with displayio

Parameters:
  • bus – The bus that the display is connected to.

  • width (int) – The width of the display. Maximum of 132

  • height (int) – The height of the display. Maximum of 64

  • rotation (int) – The rotation of the display. 0, 90, 180 or 270.

property is_awake: bool

The power state of the display. (read-only)

True if the display is active, False if in sleep mode.

sleep() None

Put display into sleep mode. The display uses < 5uA in sleep mode.

Sleep mode does the following:

  1. Stops the oscillator and DC-DC circuits

  2. Stops the OLED drive

  3. Remembers display data and operation mode active prior to sleeping

  4. The MP can access (update) the built-in display RAM

wake() None

Wake display from sleep mode