2 questions

17 views
Skip to first unread message

Matanel

unread,
Jan 12, 2014, 5:05:41 AM1/12/14
to ioio-...@googlegroups.com
Hello.
I have two questions:
1. Can i write data with I2C protocol from IOIO setup event, or just from the loop event?
2. I connected the IOIO to some device with I2C, my device start sends data to the IOIO from MSB digit to LSB digit.
   did i need to soft the digits after that the IOIO read them?

Ytai Ben-Tsvi

unread,
Jan 12, 2014, 5:07:25 AM1/12/14
to ioio-...@googlegroups.com
Inline


On Sun, Jan 12, 2014 at 2:05 AM, Matanel <matane...@gmail.com> wrote:
Hello.
I have two questions:
1. Can i write data with I2C protocol from IOIO setup event, or just from the loop event?

Yes. You can do it from setup().
 
2. I connected the IOIO to some device with I2C, my device start sends data to the IOIO from MSB digit to LSB digit.
   did i need to soft the digits after that the IOIO read them?

Not sure what you mean by "soft the digits". 

--
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 ioio-users+...@googlegroups.com.
To post to this group, send email to ioio-...@googlegroups.com.
Visit this group at http://groups.google.com/group/ioio-users.
For more options, visit https://groups.google.com/groups/opt_out.

Matanel

unread,
Jan 12, 2014, 5:23:32 AM1/12/14
to ioio-...@googlegroups.com
Thanks.

About the second question: for example, my device start sending this binary nubmer - 10000000, which the '1' is the first bit was sent.
what the IOIO respose byte buffer will receive, 00000001 or 10000000

Ytai Ben-Tsvi

unread,
Jan 12, 2014, 1:38:16 PM1/12/14
to ioio-...@googlegroups.com
I2C is always MSB-first I believe. So 10000000 is 0x80.


Matanel

unread,
Jan 13, 2014, 5:31:32 AM1/13/14
to ioio-...@googlegroups.com
Thank you.
Reply all
Reply to author
Forward
0 new messages