So here's my code : 

private TwiMaster twi;
byte[] response = new byte[2];
//il faut addresser with adress
byte[] request = new byte[] {0x48};
double reception;


void ioioSetup(IOIO ioio) throws ConnectionLostException 
{
  twi = ioio.openTwiMaster(1, TwiMaster.Rate.RATE_400KHz, false);
}


void ioioLoop(IOIO ioio) throws ConnectionLostException
{
  try
  {
    twi.writeRead(72, false, request, 2, response, 2);
    double reception = (double)(((response[1] & 0x007f) << 8) + response[0
]);
    //reception = (reception * 0.0625);
    Thread.sleep(100);
  }
  catch (InterruptedException e) 
  {
  }
}

I know that you don't know Processing but as you said i could use the git 
hub page and you are the one who made this. I thought you could help me 
make this work because when i display it on my tablet there s jjust 0.00 .. 
Thanks, have a good day.

-- 
You received this message because you are subscribed to the Google Groups 
"ioio-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/ioio-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to