Page 1 of 1

I2C Work, difficulties to understand how it work on zuno

Posted: 15 Jun 2021 13:22
by TheRafal
Hi,i'm trying to get values from a slave arduino (ex: 45166667) by I2C bus but i can't get it work... I've tryed the exact script i've found here https://thewanderingengineer.com/2015/0 ... duino-i2c/ , the 32-bits one, but the value i get is not what i send... i've the same problem with an Adafruit gyro, who use the bitwise to get values. I can't get the good values and because i've difficult to understand how bytes and i2c work, i spend time for nothing...
Could some can explain me what's going wrong ??

It's like z-uno doesn't understand bitwise the same way like arduino...

Thank you

Re: I2C Work, difficulties to understand how it work on zuno

Posted: 16 Jun 2021 04:28
by PoltoS
You are better to look on the I2C based examples on Z-Uno site:
https://z-uno.z-wave.me/examples/mcp230 ... -expander/

Re: I2C Work, difficulties to understand how it work on zuno

Posted: 16 Jun 2021 13:17
by TheRafal
I've solved my problem by setting the Stop boolean from requestFrom to false !