Package com.diozero.firmata
Class SerialFirmataAdapter
java.lang.Object
com.diozero.firmata.FirmataAdapter
com.diozero.firmata.SerialFirmataAdapter
- All Implemented Interfaces:
FirmataProtocol,AutoCloseable,Runnable
public class SerialFirmataAdapter extends FirmataAdapter
-
Nested Class Summary
Nested classes/interfaces inherited from class com.diozero.firmata.FirmataAdapter
FirmataAdapter.FirmwareDetails, FirmataAdapter.I2CResponse, FirmataAdapter.StringDataResponseNested classes/interfaces inherited from interface com.diozero.firmata.FirmataProtocol
FirmataProtocol.PinCapability, FirmataProtocol.PinMode -
Field Summary
Fields inherited from interface com.diozero.firmata.FirmataProtocol
ANALOG_IO_END, ANALOG_IO_START, ANALOG_MAPPING_QUERY, ANALOG_MAPPING_RESPONSE, CAPABILITY_QUERY, CAPABILITY_RESPONSE, DIGITAL_IO_END, DIGITAL_IO_START, END_SYSEX, EXTENDED_ANALOG, EXTENDED_ID, I2C_CONFIG, I2C_REPLY, I2C_REQUEST, PIN_STATE_QUERY, PIN_STATE_RESPONSE, PROTOCOL_VERSION, REPORT_ANALOG_PIN, REPORT_DIGITAL_PORT, REPORT_FIRMWARE, SAMPLING_INTERVAL, SET_DIGITAL_PIN_VALUE, SET_PIN_MODE, START_SYSEX, STRING_DATA, SYSEX_NON_REALTIME, SYSEX_REALTIME, SYSTEM_RESET -
Constructor Summary
Constructors Constructor Description SerialFirmataAdapter(FirmataEventListener eventListener, String deviceFile, int baud, SerialConstants.DataBits dataBits, SerialConstants.StopBits stopBits, SerialConstants.Parity parity, boolean readBlocking, int minReadChars, int readTimeoutMillis) -
Method Summary
Modifier and Type Method Description voidclose()Methods inherited from class com.diozero.firmata.FirmataAdapter
enableDigitalReporting, getBoardCapabilities, getDigitalValue, getFirmware, getMax, getPinMode, getPinState, getProtocolVersion, getValue, i2cRead, i2cReadData, i2cWrite, i2cWriteData, initialiseBoard, run, setDigitalValue, setDigitalValues, setPinMode, setSamplingInterval, setValue, start
-
Constructor Details
-
SerialFirmataAdapter
public SerialFirmataAdapter(FirmataEventListener eventListener, String deviceFile, int baud, SerialConstants.DataBits dataBits, SerialConstants.StopBits stopBits, SerialConstants.Parity parity, boolean readBlocking, int minReadChars, int readTimeoutMillis)
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Overrides:
closein classFirmataAdapter
-