Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I2C Example #132

Open
Umpil opened this issue Jul 30, 2024 · 0 comments
Open

I2C Example #132

Umpil opened this issue Jul 30, 2024 · 0 comments

Comments

@Umpil
Copy link

Umpil commented Jul 30, 2024

Well, I saw a few questions about i2c, looked at the code in Arduino StandartFirmata and lost my understanding of how to write SysEx commands. Unknown argc argument in SysExCallback, what does it mean? I looked at it i2c.md and I didn't understand in what order to write the bytes. Let's say the address of the device on the Arduino is 0x36, the startup parameters. The 7th bit is always zero, no restart is needed, in 7 bits, the mod is read and the last 3 bits are unclear, what do they mean? This is how the request 00010000 turned out. The address of the slave device 0x0E, from which 2 bytes of data should be read. In total, the entire request will be
send_sysex(I2C_REQUEST, [0x36, 0x10, 0x0E, 0x02])? And how do I get the data after the request? Should I add a handler to I2C_REPLY or to I2C_REQUEST?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant