Beispiel:
Es soll an 2 PCF8574A mit den Adressen 0x02 bzw. 0x03 das Byte 0xff bzw. 0x00 ausgegeben werden:

#include "PCF8574AUnit.cpp"

class TI2C *I2C = new TI2C;
class TPCF8574A *PCF8574A_1 = new  TPCF8574A;
class TPCF8574A *PCF8574A_2 = new  TPCF8574A;

PCF8574A_1->Set_I2C(I2C);
PCF8574A_2->Set_I2C(I2C);

PCF8574A_1->Set_Address(0x02);
PCF8574A_2->Set_Address(0x03);



if(I2C->OpenPort("COM1:1200,N,8,1"))
{
 I2C->Init();
 I2C->Start();
 I2C->Stop();
 PCF8574A_1->WriteByte(0xff);
 PCF8574A_2->WriteByte(0x00);
};


delete I2C, PCF8574A_1, PCF8574A_2;
