Hi there,
I thought I'd try your code as written - I copied and pasted into PE6, with only the need to change the pin number as I'm using an 08M2.
The code appears to run fine, with the servo moving to each position (first end, middle, other end), pausing for 2 seconds between each position, and...