📖⚡I2CDEVICE

Declare external i2c slave device settings.

todo:

Related Devices: EEPROM Speech Synthesizer

Syntax

I2DEVICE  I2CDeviceAddress , BusSpeed , DataAddressRange

Notes:

I2CDeviceAddress = Check datasheet for each i2c device

BusSpeed = I2CSlow / I2CFast Check device datasheet

DataAddressRange = I2CShort / I2CLong Check device datasheet


Example 

'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: