Probiere es mal so:
jonCode:$regfile = "m8def.dat" $crystal = 16000000 $baud = 9600 Config Servos = 4 , Servo1 = Portd.0 , Servo2 = Portb.0 , Servo3 = Portd.2 , Servo4 = Portd.3 , Reload = 10 Config Pind.0 = Output Config Pinb.0 = Output Config Pind.2 = Output Config Pind.3 = Output Enable Interrupts Servo(3) = 145 Servo(4) = 100 waitms 500 Do Servo(1) = 100 Servo(2) = 100 Waitms 500 Servo(1) = 145 Waitms 500 Servo(2) = 120 Waitms 500 Loop







Zitieren

Lesezeichen