Class SSD1351

All Implemented Interfaces:
Closeable, AutoCloseable

public class SSD1351
extends ColourSsdOled

Encapsulates the serial interface to the 16-bit (5-6-5 RGB) and 18-bit (6-6-6 RGB) colour SSD1351 128x128 OLED display hardware. On creation, an initialisation sequence is pumped to the display to properly configure it. Further control commands can then be called to affect the brightness and other settings.

Wiring:

 GND .... Ground
 Vcc .... 3v3
 SCL .... SCLK (SPI)
 SDA .... MOSI (SPI)
 RES .... Reset (GPIO) [27]
 DC  .... Data/Command Select (GPIO) [22]
 CS  .... Chip Select (SPI)
 

Links:

  • Constructor Details

  • Method Details

    • data

      protected void data()
      Overrides:
      data in class SsdOled
    • data

      protected void data​(int offset, int length)
      Overrides:
      data in class SsdOled
    • init

      protected void init()
      Specified by:
      init in class SsdOled
    • goTo

      protected void goTo​(int x, int y)
      Specified by:
      goTo in class SsdOled
    • invertDisplay

      public void invertDisplay​(boolean invert)
      Specified by:
      invertDisplay in class SsdOled
    • setContrast

      public void setContrast​(byte level)
      This command is used to set Contrast Setting of the display. The chip has 256 contrast steps from 00h to FFh. The segment output current ISEG increases linearly with the contrast step, which results in brighter display.
      Specified by:
      setContrast in class ColourSsdOled
    • setContrast

      public void setContrast​(byte red, byte green, byte blue)
      Specified by:
      setContrast in class ColourSsdOled