I assume that the code above is working...and you are able to move the blob with the arduino controller.
Then you can probably try this code:
Then you can probably try this code:
- import java.awt.AWTException;
- import java.awt.Robot;
- Robot robot;
- void setup() {
- size(400, 400);
- try {
- robot = new Robot();
- }
- catch (AWTException e) {
- e.printStackTrace();
- }
- robot.mouseMove(displayWidth/2, displayHeight/2);
- }
- void draw() {
- //println(frameCount);
- }