📖⚡I2CWRITE

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

todo:

Related Devices: EEPROM Speech Synthesizer

Syntax

WriteI2C DataAddress , (ByteValue [,ByteValue ,ByteValue..])

Example

 

'I2CWRITE Example

I2CSLAVE %10100000 , I2CFast , I2CLong 

FOR W0 = $0000 TO $FFFF 
  I2CWRITE W0 , (B0) 
NEXT 

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

Related Commands: