Created
March 19, 2017 14:17
-
-
Save maxpromer/7de96ff941880390ffd3f7ae89c3f8a9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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