📖⚡I2CREAD

Read value(s) from the i2c data bus, starting from a specified address.

todo:

Related Devices: EEPROM Speech Synthesizer

Syntax

I2CREAD DataAddress , (ResultByteVariable [,ResultByteVariable ,ResultByteVariable..])

Example

I2CREAD W0 , (B7)


 

'I2CREAD Example

REM Declare I2C Device First
I2CSLAVE %10100000 , I2CFast , I2CLong 

FOR W0 = $0000 TO $FFFF 
  I2CREAD W0 , (B7) 
  LET PINS = B7 
  PAUSE 1000 
NEXT

Related Commands: