du gibst ja auch nur einen wert vor... dann dreh sich das servo zu diesem wert und fertig ist...
probier mal das:
gruss bluesmashCode:$regfile = "m32def.dat" $framesize = 32 $swstack = 32 $hwstack = 32 $crystal = 16000000 dim i as byte Config Servos = 2 , Servo1 = Portb.0 , Servo2 = Portb.1 , Reload = 10 Config Portb = Output Enable Interrupts for i = 50 to 100 Servo(1) = i Servo(2) = i waitms 100 next for i = 100 to 50 Servo(1) = i Servo(2) = i waitms 100 next end
Lesezeichen