hier mal der neue code:
$regfile = "M32def.dat"
$crystal = 16000000
$baud = 9600
Config Scl = Portb.0 (Port für Scl)
Config Sda = Portb.1 (Port für Sda)
Do
wait 2
I2C start
I2C Send 2 (adresse vom slave)
I2C Send 10 (das was gesendet werden soll)
I2C stop
Print Err
wait 5
I2C start
I2C Send 2 (adresse vom slave)
I2C Send 20 (das was gesendet werden soll)
I2C stop
Print Err
Loop
End
Lesezeichen