DEBSOURCES
Skip Quicknav
sources / gpiozero / 2.0.1-0.1 / docs / examples / servo_2.py
12345678910
from gpiozero import Servo, Button servo = Servo(17) btn = Button(14) while True: servo.min() btn.wait_for_press() servo.max() btn.wait_for_press()