sodale, ich habs jetzt so gemacht:
so funktioniertsCode:$regfile = "m32def.dat" $Crystal = 8000000 $baud = 9600 Config Scl = Portc.0 Config Sda = Portc.1 ' Command # 1 I2cstart I2cwbyte &HE0 I2cwbyte 0 'Register 0 Command Register I2cwbyte &HA0 '1. Byte Sequ. I2cstop ' Command # 2 I2cstart I2cwbyte &HE0 I2cwbyte 0 'Register 0 Command Register I2cwbyte &HAA '2. Byte Sequ. I2cstop ' Command # 3 I2cstart I2cwbyte &HE0 I2cwbyte 0 'Register 0 Command Register I2cwbyte &HA5 '3. Byte Sequ. I2cstop ' Command # 4 I2cstart I2cwbyte &HE0 I2cwbyte 0 'Register 0 Command Register I2cwbyte &HF2 'new address I2cstop![]()
sorry gast, du warst um eine minute zu langsamaber trotzdem danke







Zitieren

Lesezeichen