i crashed after i try to print my value, maybe there is some error 
somewhere ? below is the code 

public void loop() throws ConnectionLostException {
 button1_.setOnClickListener(new OnClickListener() {
public void onClick(View view) {
try {
/* value_ = et1_.getText().toString();
calculate_ = Integer.parseInt(value_);*/
byte0[0] =  (byte) 40;
byte0[1] =  (byte) 15;
spi.writeRead(byte0, byte0.length, 2, byte1, byte1.length);
} catch (ConnectionLostException e) {
e.printStackTrace();
} catch (InterruptedException e) {
e.printStackTrace();
}
Toast.makeText(getApplicationContext(),String.valueOf(byte1[0]+byte1[1]),
Toast.LENGTH_LONG).show();

-- 
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/groups/opt_out.

Reply via email to