Alan,
why do you initiate a write cycle, if you are not going to write anything?
like this:
'
I2cstart
I2cwbyte &H40
I2cstop
'
Also, you do not need the case statement if you read high and low,
the byte count would take care of that.
If an array is used with the byte count, then you can consecutively read as many bytes as predetermined in one session.
Best regards
Hubert
↧