Skip to content

Instantly share code, notes, and snippets.

View jhynes94's full-sized avatar

Justin Hynes-Bruell jhynes94

View GitHub Profile
// myservo.write(0); //Clockwise Unlocks Door
// myservo.write(360); //CounterClockwise Locks Door
// myservo.detach(10); //Turns Servo OFF
// myservo.attach(10); //Enables servo on pin 9
#include <Servo.h>
#include <Keypad.h>
//Servo Setup
Servo myservo; // create servo object to control a servo