Zitat Zitat von >toxic<
Code:
      Servo(1) = 48                                         'Servos schrittweise bis zum Endpunkt fahren
      Servo(2) = 152
      Waitms 20
      Servo(1) = 49
      Servo(2) = 151
      Waitms 20
      Servo(1) = 50
      Servo(2) = 150
 ...
Hallo toxic!

Du könntest die FOR-Schleife verwenden um wiederkehrende Aktionen durchzuführen:

ungetestet:
Code:
dim schritt as byte
dim startwert(2) as byte
dim tmp as byte

startwert(1) = 48
startwert(2) = 152

for schritt = 0 to 10
    tmp = startwert(1) + schritt
    servo(1) = tmp
    tmp = startwert(2) - schritt
    servo(2) = tmp
next schritt
mfg
Gerold
:-)

PS:
Was ist los?
Sind wir alle gleichzeitig beim Antworten? :-)

.