Du musst für Alias keine Variable vorher erstellen.
Das $baud brauchst du auch nicht, weil du nichts über RS232 ausgeben willst.
Dann versuch nochmal die Servo werte runterzustellen.
Und wenn mich nicht alles täuscht, heißt es nicht Config pinb.0 = output
sondern Config portb.0 = output
Also ungefähr so:
MFG PcVirusCode:$regfile = "m8def.dat" $crystal = 1000000 Config Servos = 3 , Servo1 = Portd.6 , Servo2 = Portd.7 , Servo3 = Portb.0 , Reload = 20 Config Portb.0 = Output Config Pord.6 = Output Config Pord.7 = Output A Alias Servo(1) B Alias Servo(2) C Alias Servo(3) Enable Interrupts Do A = 50 B = 50 C = 50 Waitms 1000 A = 150 B = 150 C = 150 Waitms 1000 Loop







Zitieren

Lesezeichen