From 5575b774b81b6265dac8520ef2833de771f69f00 Mon Sep 17 00:00:00 2001 From: REAS Date: Tue, 13 Oct 2015 15:56:05 -0700 Subject: [PATCH] Tests for new Serial reference --- .../serial/src/processing/serial/Serial.java | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/java/libraries/serial/src/processing/serial/Serial.java b/java/libraries/serial/src/processing/serial/Serial.java index e816c62f4..aa30652d7 100644 --- a/java/libraries/serial/src/processing/serial/Serial.java +++ b/java/libraries/serial/src/processing/serial/Serial.java @@ -33,6 +33,18 @@ import java.util.Map; import jssc.*; +/** + * ( begin auto-generated from Serial.xml ) + * + * Class for sending and receiving data using the serial communication protocol. + * + * ( end auto-generated ) + * @webref serial + * @brief Class for sending and receiving data using the serial communication protocol. + * @instanceName serial any variable of type Serial + * @usage Application + * @see_external LIB_serial/serialEvent + */ public class Serial implements SerialPortEventListener { PApplet parent; public SerialPort port; @@ -53,7 +65,6 @@ public class Serial implements SerialPortEventListener { // * state of the RING, RLSD line // * sending breaks - public Serial(PApplet parent) { this(parent, "COM1", 9600, 'N', 8, 1); } @@ -167,7 +178,11 @@ public class Serial implements SerialPortEventListener { bufferUntilSize = size; } - + /** + * @webref + * @brief + * @param inByte byte to buffer until it's reached + */ public void bufferUntil(int inByte) { bufferUntilSize = 0; bufferUntilByte = (byte)inByte;