Skip to content

Instantly share code, notes, and snippets.

@JeffersGlass
Created October 25, 2020 22:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JeffersGlass/66bd6fab908a47724fcfbea44288a3d2 to your computer and use it in GitHub Desktop.
Save JeffersGlass/66bd6fab908a47724fcfbea44288a3d2 to your computer and use it in GitHub Desktop.
from gpiozero import Servo
from time import sleep
#Change this pin to GPIO pin of the Servo to control
leftEyebrow = Servo(21)
rightEyebrow = Servo(20)
while(True):
leftEyebrow.max()
rightEyebrow.min()
sleep(1)
leftEyebrow.min()
rightEyebrow.max()
sleep(1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment