Develop user interface for controlling the Micro Servo Motor. The interface should enable the user to input the desired position as well as control with the buttons. The buttons should be marked with according position (0, 45, 90, 135, 180 degrees).
At the realization Pin9 (or other PWM Pin) should be used at initialization:
board.pinMode(9, board.MODES.SERVO);
For the control, the following code is used:
board.servoWrite(9, 90); // turn for 90 degrees (within range 0 to 180)
Add the button that moves the shaft of the motor for +10 or -10 degrees.