i2c macro`s

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Post Reply
saschech@gmx.de
Posts: 714
Joined: Wed Jan 31, 2007 12:41 pm
Has thanked: 1 time
Been thanked: 26 times

i2c macro`s

Post by saschech@gmx.de »

Hello Benj

In the i2c transmit makros,what function have the return-variable?

in the i2c read macro,what function have the last-byte variable?

Regards Wolfgang

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: i2c macro`s

Post by Benj »

Hello Wolfgang,

The following was taken from the I2C component help file.

Char2 MI²C_Transmit_Byte(Char1)
Sends a byte (Char1) on the I²C bus. Returns the acknowledge if any (Char2).
0 represents that data was acknowledged and 1 represents no acknowledge was detected (Char2).

Char2 MI²C_Receive_Byte(Char1)
Receives a byte (Char2) from the I²C bus. Char1 is used to signify the last byte when streaming incoming data.
0 represents that data is still being received and 1 represents last byte of data to be received (Char1).

Post Reply