Loading...
Logo
Processing Forum
arthur168's Profile
7 Posts
2 Responses
0 Followers

Activity Trend

Last 30 days
Show:
Private Message
    I need to connect and disconnect the serial port while my draw() loop is running.
    I can connect once (in setup()) using:
    myPort =
    new Serial ( this , Serial.list()[0], 9600);
    And I can disconnect (in draw()) using:
    Serial(close);
    How can I re-connect again in draw()?
     
     
    When opening an existing sketch using the control button, the sketch is opened in a new window. In version 1.5.1 this would only happen if 'shift' was pressed during the process. Is this intentional?
    The option for using an external editor has now been removed from the Preferences dialog.
    I modified the line: editor.external =true in preferences.txt and restarted Processing, but it was still possible to edit in Processing. Is this a known bug, or am I doing something wrong?
    In the following example, why does the character array 'abcd' print in a different location to the string "efgh"?
     
    size (100,100);
    textFont(createFont("Arial", 20));
    char[] c = {'a', 'b', 'c', 'd'};
    String d = "efgh";
    text(c, 0, 4, 40, 40);
    text(d, 0, 4, 40, 40);