*murmel* Ich hab mir das datenblatt angesehen, ich sag' dir, was ich denke:
Du mußt erst mal die Pin konfigurieren, normalerweise ist alles Input.
P12 wäre das Konfig-register &H0B, die bits 0 u. 1
(I2Cwbyte ist EIN byte senden, I2Csend gehen auch mehrere)
Konfigurieren:
I2cstart 'start
I2cwbyte Slave
I2cwbyte &H0B 'Port 12 -15 Config (Seite 7)
I2cwbyte &H55 'Port 12 -15 = output
'------------------------------------- mal soll nicht mit 0 kongfigurieren)
I2cstop 'stop

P12 auf "1" :
I2cstart 'start
I2cwbyte Slave
I2cwbyte &H2C 'Port 12 only (Seite 13)
I2cwbyte &H01 'Port 12 auf "1"
I2cstop 'stop


P12 auf "0" :
I2cstart 'start
I2cwbyte Slave
I2cwbyte &H2C 'Port 12 only (Seite 13)
I2cwbyte &H00 'Port 12 auf "1"
I2cstop 'stop

Und jetzt guck mal, ob ich dir einen Schwachsinn erzählt habe