mmm, interesting, never tried it before... Thanks Dave!
Anybody else tried that before and got bad results with this ?
anyways, here's an easy workaround.
Code:
IOExpander var byte[7]
WichIOExpander var byte
IOExpander[0]=%11110000
IOExpander[1]=%11110001
IOExpander[2]=%11110010
IOExpander[3]=%11110011
IOExpander[4]=%11110100
IOExpander[5]=%11110101
IOExpander[6]=%11110110
For Loop = 0 to 6
WichIOExpander=IoExpander[Loop]
I2cWRITE blah,blah2,WichIOExpander,[SteakBledindePatate]
pause 5
next
OR
Code:
IOExpander=%11110110
For Loop = 0 to 6
I2cWRITE blah,blah2,(IOExpander+Loop),[SteakBledindePatate]
pause 5
next
And if it doesn't work..
Code:
WichIOExpander var byte
IOExpander=%11110110
For Loop = 0 to 6
WichIOExpander=IOExpander+Loop
I2cWRITE blah,blah2,WichIOExpander,[SteakBledindePatate]
pause 5
next
Sorry, i can't check any of the above where i am right now.
Bookmarks