In java processing program I write to the serial port via:
import processing.serial.*; port = new Serial(this,Serial.list()[0] , 9600); port.write('3');
And in python processing:
add_library('serial') port = Serial(this,Serial.list()[0] , 9600) port.write('3')
In Java everything works fine but in python a got the error on the statement 'port.write('3'):
"processing.app.SketchException: TypeError: write(): expected 2 args; got 1"
In java processing program I write to the serial port via:
import processing.serial.*; port = new Serial(this,Serial.list()[0] , 9600); port.write('3');
And in python processing:add_library('serial') port = Serial(this,Serial.list()[0] , 9600) port.write('3')
In Java everything works fine but in python a got the error on the statement 'port.write('3'): "processing.app.SketchException: TypeError: write(): expected 2 args; got 1"help would be appreciated!