Package com.diozero.devices.sandpit
Class WaveshareEink
- java.lang.Object
-
- com.diozero.devices.sandpit.WaveshareEink
-
- All Implemented Interfaces:
DeviceInterface
,AutoCloseable
- Direct Known Subclasses:
WaveshareEink75b
public abstract class WaveshareEink extends Object implements DeviceInterface
7.5" Datasheet: https://www.waveshare.com/wiki/File:7.5inch-e-paper-specification.pdf 7.5" V2 Datasheet: https://www.waveshare.com/w/upload/6/60/7.5inch_e-Paper_V2_Specification.pdf https://www.waveshare.com/wiki/7.5inch_e-Paper_HAT Code: https://github.com/waveshare/e-Paper OTP: One Time Programmable memory, not programmed into registers by the driver SW for this controller. LUT: Waveform Look Up Table
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WaveshareEink.Model
-
Field Summary
Fields Modifier and Type Field Description protected DigitalInputDevice
busy
protected int
chipRev
protected DigitalOutputDevice
dataOrCommand
protected SpiDevice
device
protected int
lutRev
protected WaveshareEink.Model
model
protected int
prodRev
protected DigitalOutputDevice
reset
-
Constructor Summary
Constructors Constructor Description WaveshareEink(WaveshareEink.Model model, int controller, int chipSelect, DigitalOutputDevice reset, DigitalOutputDevice dataOrCommand, DigitalInputDevice busy)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
clear()
void
close()
Close this deviceprotected void
command(byte command)
protected void
commandAndData(byte command, byte... data)
protected void
data(byte... data)
int
getChipRevision()
int
getLookupTableRevision()
int
getProductRevision()
protected abstract void
getRevision()
protected abstract void
init()
protected abstract void
readBusy()
protected void
reset()
protected abstract void
sleep()
-
-
-
Field Detail
-
model
protected WaveshareEink.Model model
-
device
protected SpiDevice device
-
reset
protected DigitalOutputDevice reset
-
dataOrCommand
protected DigitalOutputDevice dataOrCommand
-
busy
protected DigitalInputDevice busy
-
prodRev
protected int prodRev
-
lutRev
protected int lutRev
-
chipRev
protected int chipRev
-
-
Constructor Detail
-
WaveshareEink
public WaveshareEink(WaveshareEink.Model model, int controller, int chipSelect, DigitalOutputDevice reset, DigitalOutputDevice dataOrCommand, DigitalInputDevice busy)
-
-
Method Detail
-
init
protected abstract void init()
-
reset
protected void reset()
-
sleep
protected abstract void sleep()
-
clear
protected abstract void clear()
-
readBusy
protected abstract void readBusy()
-
commandAndData
protected void commandAndData(byte command, byte... data)
-
command
protected void command(byte command)
-
data
protected void data(byte... data)
-
close
public void close() throws RuntimeIOException
Description copied from interface:DeviceInterface
Close this device- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceDeviceInterface
- Throws:
RuntimeIOException
-
getRevision
protected abstract void getRevision()
-
getProductRevision
public int getProductRevision()
-
getLookupTableRevision
public int getLookupTableRevision()
-
getChipRevision
public int getChipRevision()
-
-