You can't use .BYTEX or HIGhBYTE, LOWBYTE etc with array.
Workaround that
Code:
for counterd = 0 to 15
pcaChannel = counterD
i2cControl = $6 + 4*pcaChannel
Tmp= fadeset[counterD]
I2CWRITE SDApin,SCLpin,i2cWriteAddress,i2cControl,[0,0,Tmp.lowbyte,Tmp.highbyte]
Next counterD
OR
Code:
for counterd = 0 to 15
pcaChannel = counterD
i2cControl = $6 + 4*pcaChannel
I2CWRITE SDApin,SCLpin,i2cWriteAddress,i2cControl,[0,0, fadeset[counterD]]
Next counterD
If you array is word wide, PBP should send 2 byte in sequence. But I'm not sure.
Bookmarks