Package com.diozero.devices.oled
Class ColourSsdOled
java.lang.Object
com.diozero.devices.oled.SsdOled
com.diozero.devices.oled.ColourSsdOled
- All Implemented Interfaces:
DeviceInterface
,AutoCloseable
public abstract class ColourSsdOled extends SsdOled
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ColourSsdOled(int controller, int chipSelect, DigitalOutputDevice dcPin, DigitalOutputDevice resetPin, int width, int height, int imageType)
-
Method Summary
Modifier and Type Method Description void
display(BufferedImage image)
protected void
home()
abstract void
setContrast(byte level)
abstract void
setContrast(byte red, byte green, byte blue)
void
setPixel(int x, int y, byte red, byte green, byte blue, boolean display)
Methods inherited from class com.diozero.devices.oled.SsdOled
clear, close, command, data, data, display, getHeight, getNativeImageType, getWidth, goTo, init, invertDisplay, reset, setDisplayOn
-
Field Details
-
MAX_RED
public static final byte MAX_RED -
MAX_GREEN
public static final byte MAX_GREEN -
MAX_BLUE
public static final byte MAX_BLUE
-
-
Constructor Details
-
ColourSsdOled
public ColourSsdOled(int controller, int chipSelect, DigitalOutputDevice dcPin, DigitalOutputDevice resetPin, int width, int height, int imageType)
-
-
Method Details
-
home
protected void home() -
display
-
setPixel
public void setPixel(int x, int y, byte red, byte green, byte blue, boolean display) -
setContrast
public abstract void setContrast(byte level) -
setContrast
public abstract void setContrast(byte red, byte green, byte blue)
-