Package com.diozero.devices.oled
Class SsdOledCommunicationChannel.SpiCommunicationChannel
- java.lang.Object
-
- com.diozero.devices.oled.SsdOledCommunicationChannel.SpiCommunicationChannel
-
- All Implemented Interfaces:
SsdOledCommunicationChannel
,AutoCloseable
- Enclosing interface:
- SsdOledCommunicationChannel
public static class SsdOledCommunicationChannel.SpiCommunicationChannel extends Object implements SsdOledCommunicationChannel
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.diozero.devices.oled.SsdOledCommunicationChannel
SsdOledCommunicationChannel.I2cCommunicationChannel, SsdOledCommunicationChannel.SpiCommunicationChannel
-
-
Constructor Summary
Constructors Constructor Description SpiCommunicationChannel(int chipSelect, int controller, int spiFrequency)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
write(byte... data)
void
write(byte[] txBuffer, int txOffset, int length)
-
-
-
Method Detail
-
write
public void write(byte... data)
- Specified by:
write
in interfaceSsdOledCommunicationChannel
-
write
public void write(byte[] txBuffer, int txOffset, int length)
- Specified by:
write
in interfaceSsdOledCommunicationChannel
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceSsdOledCommunicationChannel
-
-