Updated:
Main CLass:
private TextView tmpTextView;
private TwiMaster twi;
int address = 0x48;
byte[] request = new byte[] { 0x00, 0x48};
byte[] response = new byte[2];
Looper Class:
public void setup() throws ConnectionLostException {
twi = ioio_.openTwiMaster(1, TwiMaster.Rate.RATE_100KHz, false);
}
public void loop() throws ConnectionLostException {
try {
twi.writeRead(address, false, request, request.length, response,
response.length);
/* Update UI */
updateViews();
} catch (InterruptedException e) {
ioio_.disconnect();
} catch (ConnectionLostException e) {
throw e; } } }
Still Nothing.
--
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.