| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -33,6 +33,18 @@ | |||
| 33 | 33 | import jssc.*; | |
| 34 | 34 | ||
| 35 | 35 | ||
| 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 | + */ | ||
| 36 | 48 | public class Serial implements SerialPortEventListener { | |
| 37 | 49 | PApplet parent; | |
| 38 | 50 | public SerialPort port; | |
@@ -53,7 +65,6 @@ public class Serial implements SerialPortEventListener { | |||
| 53 | 65 | // * state of the RING, RLSD line | |
| 54 | 66 | // * sending breaks | |
| 55 | 67 | ||
| 56 | - | ||
| 57 | 68 | public Serial(PApplet parent) { | |
| 58 | 69 | this(parent, "COM1", 9600, 'N', 8, 1); | |
| 59 | 70 | } | |
@@ -167,7 +178,11 @@ public void buffer(int size) { | |||
| 167 | 178 | bufferUntilSize = size; | |
| 168 | 179 | } | |
| 169 | 180 | ||
| 170 | - | ||
| 181 | + /** | ||
| 182 | + * @webref | ||
| 183 | + * @brief | ||
| 184 | + * @param inByte byte to buffer until it's reached | ||
| 185 | + */ | ||
| 171 | 186 | public void bufferUntil(int inByte) { | |
| 172 | 187 | bufferUntilSize = 0; | |
| 173 | 188 | bufferUntilByte = (byte)inByte; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments