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:
MAX_BLUE, MAX_GREEN, MAX_RED
Constructor and Description |
---|
SSD1351(int controller,
int chipSelect,
DigitalOutputDevice dcPin,
DigitalOutputDevice resetPin) |
Modifier and Type | Method and Description |
---|---|
protected void |
data() |
protected void |
data(int offset,
int length) |
protected void |
goTo(int x,
int y) |
protected void |
init() |
void |
invertDisplay(boolean invert) |
void |
setContrast(byte level)
This command is used to set Contrast Setting of the display.
|
void |
setContrast(byte red,
byte green,
byte blue) |
display, home, setPixel
clear, close, command, display, getHeight, getNativeImageType, getWidth, reset, setDisplayOn
public SSD1351(int controller, int chipSelect, DigitalOutputDevice dcPin, DigitalOutputDevice resetPin)
public void invertDisplay(boolean invert)
invertDisplay
in class SsdOled
public void setContrast(byte level)
setContrast
in class ColourSsdOled
public void setContrast(byte red, byte green, byte blue)
setContrast
in class ColourSsdOled
Copyright © 2016–2018 mattjlewis. All rights reserved.