Wie heißt das im englischen?
RTFM?
Read the funny manual?
In dem Beispiel ist A0-4 auf Masse A5 und A6 auf Plus gelegt!
Code:I2cstart 'Reset I2cwbyte &H06 I2cwbyte &HA5 I2cwbyte &H5A I2cstop Waitms 120 I2cstart 'Mode1 und Mode2 setzen I2cwbyte &HC0 I2cwbyte &H80 I2cwbyte &H81 I2cwbyte &H1D I2cstop I2cstart 'Ausgänge setzen I2cwbyte &HC0 I2cwbyte &HF4 I2cwbyte &HFF I2cwbyte &HFF I2cwbyte &HFF I2cwbyte &HFF I2cstop 'Jetzt können die 16 Helligkeiten geschrieben werden I2cstart I2cwbyte &HC0 I2cwbyte &HA2 I2cwbyte V_hell(1) I2cwbyte V_hell(2) I2cwbyte V_hell(3) I2cwbyte V_hell(4) I2cwbyte V_hell(5) I2cwbyte V_hell(6) I2cwbyte V_hell(7) I2cwbyte V_hell(8) I2cwbyte V_hell(9) I2cwbyte V_hell(10) I2cwbyte V_hell(11) I2cwbyte V_hell(12) I2cwbyte V_hell(13) I2cwbyte V_hell(14) I2cwbyte V_hell(15) I2cwbyte V_hell(16) I2cstop






Zitieren

Lesezeichen