mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
added setDTR() method from tom hulbert
This commit is contained in:
@@ -207,6 +207,14 @@ public class Serial implements SerialPortEventListener {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Set the DTR line. Addition from Tom Hulbert.
|
||||
*/
|
||||
public void setDTR(boolean state) {
|
||||
port.setDTR(state);
|
||||
}
|
||||
|
||||
|
||||
synchronized public void serialEvent(SerialPortEvent serialEvent) {
|
||||
if (serialEvent.getEventType() == SerialPortEvent.DATA_AVAILABLE) {
|
||||
try {
|
||||
@@ -658,4 +666,3 @@ public class Serial implements SerialPortEventListener {
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user