Flowcode I2C + Arduino UNO + MCP23017 I/O
Posted: Sun Feb 19, 2017 4:00 am
Hi i've been trying to figure out my mistake for a while now, but i just can't seems to hit a solution.
My Setup
I have an arduino UNO hooked up to a MCP23017 through SDA and SCL pins.
On the MCP23017 i have 8 LED from GPA21 to GPA28 of the MCP.
I know my setup is right as when i compile my code through the arduino IDE, i have the LEDs to lite up according to the data i passed through.
My issue is that i can not reproduce this with my flowchart.
My component address is 0x20 and the register's address on which the LED are is 0x12.
Therefore i used the Initialise Macro, followed by the SendByteTransaction Macro with the following values:
Devide_ID: 0x20
AddrH:0x00
AddrL:0x12
Data:170
After compiling nothing happens. What is most puzzling is that i have a logic analyzer hook to SCL and SDA pins. When compiling with arduino IDE the signals shows but when compiling in Flowcode i have no signal showing up on the bus.
Can anyone help me figure out what i am missing ?
thanks*
My Setup
I have an arduino UNO hooked up to a MCP23017 through SDA and SCL pins.
On the MCP23017 i have 8 LED from GPA21 to GPA28 of the MCP.
I know my setup is right as when i compile my code through the arduino IDE, i have the LEDs to lite up according to the data i passed through.
My issue is that i can not reproduce this with my flowchart.
My component address is 0x20 and the register's address on which the LED are is 0x12.
Therefore i used the Initialise Macro, followed by the SendByteTransaction Macro with the following values:
Devide_ID: 0x20
AddrH:0x00
AddrL:0x12
Data:170
After compiling nothing happens. What is most puzzling is that i have a logic analyzer hook to SCL and SDA pins. When compiling with arduino IDE the signals shows but when compiling in Flowcode i have no signal showing up on the bus.
Can anyone help me figure out what i am missing ?
thanks*