public abstract class SsdOled extends Object implements Closeable
Modifier and Type | Field and Description |
---|---|
protected byte[] |
buffer |
protected DigitalOutputDevice |
dcPin |
protected int |
height |
protected int |
imageType |
protected DigitalOutputDevice |
resetPin |
protected SpiDevice |
spiDevice |
protected int |
width |
Constructor and Description |
---|
SsdOled(int controller,
int chipSelect,
DigitalOutputDevice dcPin,
DigitalOutputDevice resetPin,
int width,
int height,
int imageType) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
void |
close() |
protected void |
command(byte... commands) |
protected void |
data() |
protected void |
data(int offset,
int length) |
void |
display() |
abstract void |
display(BufferedImage image) |
int |
getHeight() |
int |
getNativeImageType() |
int |
getWidth() |
protected abstract void |
goTo(int x,
int y) |
protected abstract void |
home() |
protected abstract void |
init() |
abstract void |
invertDisplay(boolean invert) |
protected void |
reset() |
void |
setDisplayOn(boolean on) |
protected SpiDevice spiDevice
protected DigitalOutputDevice dcPin
protected DigitalOutputDevice resetPin
protected int width
protected int height
protected byte[] buffer
protected int imageType
public SsdOled(int controller, int chipSelect, DigitalOutputDevice dcPin, DigitalOutputDevice resetPin, int width, int height, int imageType)
protected abstract void init()
protected void reset()
protected void command(byte... commands)
protected void data()
protected void data(int offset, int length)
protected abstract void goTo(int x, int y)
protected abstract void home()
public void display()
public abstract void display(BufferedImage image)
public void clear()
public int getWidth()
public int getHeight()
public void setDisplayOn(boolean on)
public void close()
close
in interface Closeable
close
in interface AutoCloseable
public int getNativeImageType()
public abstract void invertDisplay(boolean invert)
Copyright © 2016–2018 mattjlewis. All rights reserved.