Skip to content

Commit 5639e93

Browse files
committed
Tests for new Serial reference
1 parent d10ba12 commit 5639e93

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

java/libraries/serial/src/processing/serial/Serial.java

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,18 @@
3333
import jssc.*;
3434

3535

36+
/**
37+
* ( begin auto-generated from Serial.xml )
38+
*
39+
* Class for sending and receiving data using the serial communication protocol.
40+
*
41+
* ( end auto-generated )
42+
* @webref serial
43+
* @brief Class for sending and receiving data using the serial communication protocol.
44+
* @instanceName serial any variable of type Serial
45+
* @usage Application
46+
* @see_external LIB_serial/serialEvent
47+
*/
3648
public class Serial implements SerialPortEventListener {
3749
PApplet parent;
3850
public SerialPort port;
@@ -53,7 +65,6 @@ public class Serial implements SerialPortEventListener {
5365
// * state of the RING, RLSD line
5466
// * sending breaks
5567

56-
5768
public Serial(PApplet parent) {
5869
this(parent, "COM1", 9600, 'N', 8, 1);
5970
}
@@ -167,7 +178,11 @@ public void buffer(int size) {
167178
bufferUntilSize = size;
168179
}
169180

170-
181+
/**
182+
* @webref
183+
* @brief
184+
* @param inByte byte to buffer until it's reached
185+
*/
171186
public void bufferUntil(int inByte) {
172187
bufferUntilSize = 0;
173188
bufferUntilByte = (byte)inByte;

0 commit comments

Comments
 (0)