jojoduino
ball at work

// afficher des balles à chaque click

balle [] mesBalles = new balle [0];

//balle maballe1 = new balle (mouseX, mouseY);

void setup () {

  size (400, 200);

  background (0);

}

void draw () {

  println (mesBalles.length);

}

class balle {

  float posX;

  float posY;

  balle ( float maposX, float maposY) {

    posX = maposX;

    posY = maposY;

  }

  //posX = mouseX;

  //posY = mouseY; 

  void afficher () {

    fill (255);

    ellipse (posX, posY, 10, 10);

  }

}

void mousePressed () {

 mesBalles = (balle []) append (mesBalles, new balle(mouseX, mouseY));

 int a = mesBalles.length;

 mesBalles[a].afficher ();

}

test 5

String t = “allo la terre ici la lune”;

println (q.length);

for ( int i=0; i < (q.length) ; i= i+1) {

 if (q[i].equals(“terre”)) {

  println(“!!!!!!!!!!!!!!!!!!! voici la terre”);

 }

println (q[i]); 

}

text (t, 0, 0, 80, 100 );

println (q);

test4

String words = “apple bear cat|dog”;

String[] list = split(words, ‘|’);

  int mo = month ();

  int d = day ();

  int h = hour ();

  int m = minute ();

  int s = second ();

  int i = 01;

///////////////////////////////// SETUP

void setup () {

}

///////////////////////////////// DRAW

void draw () {

  println (d + ” ” + h + ” ” + m + ” ” + s);

}

///////////////////////////////// KEYPRESSED

void mousePressed() {

  saveStrings( “data/” + mo + “-” + d + “-” +  h + “-” + m + “-” + s +”•”+ i + “.txt”, list);

 list = append (list , “newword|”);

  i= i +1;

}

test3

String words = “apple bear cat|dog”;

String[] list = split(words, ‘|’);

  int d = day ();

  int h = hour ();

  int m = minute ();

  int s = second ();

  int i = 01;

///////////////////////////////// SETUP

void setup () {

}

///////////////////////////////// DRAW

void draw () {

  println (d + ” ” + h + ” ” + m + ” ” + s);

}

///////////////////////////////// KEYPRESSED

void mousePressed() {

  saveStrings(“texte” + d + h + m + s +”•”+ i + “.txt”, list);

 list = append (list , “newword|”);

  i= i +1;

}

test2

String words = “apple bear cat dog”;

String[] list = split(words, ’ ‘);

  int d = day ();

  int h = hour ();

  int m = minute ();

  int s = second ();

  int i = 01;

///////////////////////////////// SETUP

void setup () {

}

///////////////////////////////// DRAW

void draw () {

  println (d + ” ” + h + ” ” + m + ” ” + s);

}

///////////////////////////////// KEYPRESSED

void mousePressed() {

  saveStrings(“texte” + d + h + m + s +”|”+ i + “.txt”, list);

  i= i +1;

}

test

String words = “apple bear cat dog”;

String[] list = split(words, ’ ‘);

int i = 1;

///////////////////////////////// SETUP

void setup () {

}

///////////////////////////////// DRAW

void draw () {

}

///////////////////////////////// KEYPRESSED

void keyPressed() {

  i= i+ 1;

  saveStrings(“nouns” + i + “.txt”, list);

}

‪Processing To Picaxe 28x2 Communication‬

an article about it
http://blog.makezine.com/2012/06/04/the-create-usb-interface-and-grove-sensor-platform/
the wiki
http://www.seeedstudio.com/wiki/CUI32Stem
the shop
http://www.seeedstudio.com/depot/cui32stem-p-1100.html?cPath=132_208