Hallo pebisoft,
im Samples-Verzeichnis von Bascom findest du die Datei I2c.bas.
Gruß, Michael