Skip to content

I2C Example #132

Description

@Umpil

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions