Where to find address on DataSheet? 1001010 SDA? 1001011 SCL?
Is this is right? Thanks. On Friday, March 21, 2014 10:06:26 PM UTC, Ytai wrote: > > "Nothing" is not very informative... > > TWI 1 that you're using indeed uses pins 1, 2 (assuming IOIO-OTG). > Please add a check for the return value of writeRead(): true means success > and false means failure (which typically means that the device is > improperly connected, improperly powered or using a different address than > you're using). > > > On Fri, Mar 21, 2014 at 2:30 PM, Marius Vosylius > <[email protected]<javascript:> > > wrote: > >> 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] <javascript:>. >> To post to this group, send email to [email protected]<javascript:> >> . >> Visit this group at http://groups.google.com/group/ioio-users. >> For more options, visit https://groups.google.com/d/optout. >> > > -- 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.
