adafruit_displayio_sh1107
¶
DisplayIO driver for SH1107 monochrome displays
- Author(s): Scott Shawcroft, Mark Roberts (mdroberts1243), James Carr
Implementation Notes¶
Hardware:
Software and Dependencies:
- Adafruit CircuitPython (version 6+) firmware for the supported boards: https://github.com/adafruit/circuitpython/releases
-
adafruit_displayio_sh1107.
DISPLAY_OFFSET_ADAFRUIT_FEATHERWING_OLED_4650
¶ The hardware display offset to use when configuring the SH1107 for the Adafruit Featherwing 128x64 OLED. This is the default if not passed in.
-
adafruit_displayio_sh1107.
DISPLAY_OFFSET_PIMORONI_MONO_OLED_PIM374
¶ The hardware display offset to use when configuring the SH1107 for the Pimoroni Mono 128x128 OLED
-
class
adafruit_displayio_sh1107.
SH1107
(bus, display_offset=<sphinx.ext.autodoc.importer._MockObject object>, rotation=0, **kwargs)¶ SH1107 driver for use with DisplayIO
Parameters: - bus – The bus that the display is connected to.
- width (int) – The width of the display. Maximum of 128
- height (int) – The height of the display. Maximum of 128
- rotation (int) – The rotation of the display. 0, 90, 180 or 270.
- display_offset (int) – The display offset that the first column is wired to.
This will be dependent on the OLED display and two displays with the
same dimensions could have different offsets. This defaults to
DISPLAY_OFFSET_ADAFRUIT_FEATHERWING_OLED_4650
-
is_awake
¶ The power state of the display. (read-only)
True
if the display is active,False
if in sleep mode.Type: bool
-
sleep
()¶ Put display into sleep mode. The display uses < 5uA in sleep mode
Sleep mode does the following:
- Stops the oscillator and DC-DC circuits
- Stops the OLED drive
- Remembers display data and operation mode active prior to sleeping
- The MP can access (update) the built-in display RAM
-
wake
()¶ Wake display from sleep mode