I am trying out the servo class and it seems to be working when I give positive angles between 0 and 90 but it won't let me give it negative angles.
see below for debug
MicroPython v1.12-557-g3a9d94803 on 2020-06-22; PYBv1.1 with STM32F405RG
Type "help()" for more information.
>>> from pyb import Servo
>>>
>>> s1 = Servo(1) # servo on position 1 (X1, VIN, GND)
>>> s1.calibration() #read calibration
(640, 2420, 1500, 2470, 2200)
>>> s1.angle(0) # move to 0 degrees
>>> s1.pulse_width() #read pulse width
1500
>>> s1.angle(-45) #set to negitive 45
>>> s1.pulse_width() #read pulse width
1500
>>>