We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1b1bac commit f34a922Copy full SHA for f34a922
external_samples/servo.py
@@ -34,7 +34,7 @@ def set_position(self, pos: float) -> None:
34
'''Set the servo to a position between 0 and 1'''
35
# sends to the hardware the position of the servo
36
pass
37
- def set_angle(self, angle: float) -> None:
+ def set_angle_degrees(self, angle: float) -> None:
38
'''Set the servo to an angle between 0 and 270'''
39
self.set_position(angle / 270.0)
40
0 commit comments