public class SerialPortController
extends java.lang.Object
ReaderM
Constructor and Description |
---|
SerialPortController()
Base constructor.
|
Modifier and Type | Method and Description |
---|---|
int[] |
getSample()
Grab the latest unread sample from the buffer and return
it.
|
void |
start(int x)
Starts a serial port connection with comm port with number x
(ex: COM8).
|
void |
stop()
Stops the reading ReaderM thread and terminates the serial
connection.
|
public SerialPortController()
public void start(int x)
x
- The serial port number to connect topublic int[] getSample()
public void stop()