Dave, are you serious? You can't use a variable for that field?
I'm up the creek also then, my project relies heavily on MCP23016 ICs and controlling them within a loop. One easy alternative would be a bunch of IFs:
IF loop = 0 THEN I2cWRITE blah,blah2,Constant0,[SteakBledindePatate]
IF loop = 1 THEN I2cWRITE blah,blah2,Constant1,[SteakBledindePatate]
IF loop = 2 THEN I2cWRITE blah,blah2,Constant2,[SteakBledindePatate]
IF loop = 3 THEN I2cWRITE blah,blah2,Constant3,[SteakBledindePatate]
IF loop = 4 THEN I2cWRITE blah,blah2,Constant4,[SteakBledindePatate]
IF loop = 5 THEN I2cWRITE blah,blah2,Constant5,[SteakBledindePatate]
IF loop = 6 THEN I2cWRITE blah,blah2,Constant6,[SteakBledindePatate]
IF loop = 7 THEN I2cWRITE blah,blah2,Constant7,[SteakBledindePatate]
But I'm not very keen on this idea.
Robert
![]()
Bookmarks