We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
apple sms (Read 371 times)
apple sms
Dec 18th, 2007, 5:03pm
 
hei there!

i'd like to compare the values of the f.e. x value of the sudden motion sensor.

that's my attempt:

import sms.*;

void setup() {
 size(200,200);
}

void draw() {
 int i=0;
 int[] vals = Unimotion.getSMSArray();
 int[] listener = new int[5];
 while(i<5) {
   listener[i] = vals[0];
   i  = i + 1;
}
 println( listener[0] + " " + listener[1] + " " + listener[2]);
}

but it won't work... thanks for the help! mias
Page Index Toggle Pages: 1