Quote:
Originally Posted by jman4747
So if I only want to send one byte at a time I only define the register? Or do you mean the first byte I send in my code period is that register, and any following bytes need to be under data to send (Witch screen shot would be correct)?
|
If you want to send only one byte in the transaction to your Arduino, you would used the second example you posted. It would send either 2 or 0.
In the first example it looks like you would send either [1,1] or [1], so two bytes or one byte in each transaction.
Quote:
Originally Posted by jman4747
PS Also is the devise address on the I2C Open the address of the receiver?
|
Yes. The Device address is the 7-bit address of your Arduino device on the I2C bus.
I would also recommend that you try it out and print out what you get on the Arduino side to help you better grasp how the API works. You can also just open up the VIs to see what they do to some extent.
Cheers,
-Joe