Skip to content

Instantly share code, notes, and snippets.

@maxpromer
Created March 19, 2017 14:17
Show Gist options
  • Save maxpromer/7de96ff941880390ffd3f7ae89c3f8a9 to your computer and use it in GitHub Desktop.
Save maxpromer/7de96ff941880390ffd3f7ae89c3f8a9 to your computer and use it in GitHub Desktop.
// Coding By IOXhop : www.ioxhop.com
#include <Servo.h>
Servo myservo;
#define UNLOCK_POS 5
#define LOCK_POS 100
void setup() {
myservo.attach(4);
}
void loop() {
myservo.write(LOCK_POS);
delay(2000);
myservo.write(UNLOCK_POS);
delay(2000);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment