We are about to switch to a new forum software. Until then we have removed the registration on this forum.
import processing.serial.*; import cc.arduino.*; Arduino arduino;
PShape c; PImage b; float x = 0; float y = 0;
int button = 2;
void setup() { size(1080, 720); frameRate(25);
b = loadImage("background.png"); c = loadShape("colorful.svg");
println(Arduino.list()); arduino = new Arduino(this, Arduino.list()[3], 57600); arduino.pinMode(button, Arduino.INPUT);
}
void draw() { //if (arduino.digitalRead(button) == Arduino.HIGH) { image(b, 0, 0); shape(c, button, y); button+=200; //}
}