Hallo ich möchte das Servo so Programmieren das es einmal ganz rechts und einmal ganz links steht.Wie funzt das?So irgendwie nicht




Code:
Config Servos = 1 , Servo1 = Portb.0 , Reload = 1

Config Portb = Output

Enable Interrupts

 '5,5 ist ganz links 40 ganz rechts bei Reload 1^^


Do

Servo(1) = 5.5
Wait 5
Servo(1) = 40


Loop