Posts Tagged ‘itp. arduino’

[ICM] Interactive Painting Midterm: update

I’ve been playing with the code a bit, trying to create an array that will store the last 20-50 xpos and ypos of the accelerometer, allowing the ellipses to trail across the screen in a more systematic manner. I’ve been unsucessful with the following code:
import processing.serial.*;
Serial myPort;
Paint [] balls = new Paint[50];
void setup(){
size [...]