Skip to content

Commit

Permalink
Upgrade to picozero.py for Servo
Browse files Browse the repository at this point in the history
  • Loading branch information
JeongJun-Lee committed Dec 5, 2024
1 parent e39d4a9 commit 5fc494d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mu/resources/pico/picozero.py
Original file line number Diff line number Diff line change
Expand Up @@ -1762,6 +1762,9 @@ def off(self):
"""
self.value = None

def move_to_degree(self, degree, max_degree = 180):
self.value = (1 / max_degree) * degree

###############################################################################
# INPUT DEVICES
###############################################################################
Expand Down

0 comments on commit 5fc494d

Please sign in to comment.