This should go left with one button, go right with the other button, and if no buttons are pressed, should 'walk' back to center.
Note the BOLDED statements
Unfortunatly it gives exactly the same result, the servo goes to the endpoint and stay there..
..And just like in my program, if I uncomment the if-lines it "works" as in it stands in the middle position (more or less)
Bookmarks