Skip to content

add function to turn off the servo#1

Open
kai-morich wants to merge 3 commits intoAntonsMindstorms:mainfrom
kai-morich:main
Open

add function to turn off the servo#1
kai-morich wants to merge 3 commits intoAntonsMindstorms:mainfrom
kai-morich:main

Conversation

@kai-morich
Copy link
Copy Markdown

No description provided.

Copilot AI review requested due to automatic review settings April 4, 2026 14:38
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds an explicit way to disable servo output through the existing Servo.pwm() API and a new convenience method, enabling callers to stop driving the servo without changing pin configuration.

Changes:

  • Extend Servo.pwm() to accept None to disable PWM output (sets duty to 0).
  • Add Servo.off() convenience method that calls self.pwm(None).
  • Update Servo.pwm() docstring to document the new None behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread servo.py Outdated
Comment thread servo.py Outdated
kai-morich and others added 2 commits April 4, 2026 16:42
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants