Created
February 10, 2018 19:20
-
-
Save JosephGregg/52c6a47a884da25875b3c7b3be73fab5 to your computer and use it in GitHub Desktop.
unique pan/tilt settings for new robot -- nodemcu
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
#include <Arduino.h> | |
#include <Servo.h> | |
Servo tilt, pan; | |
void setup () | |
{ | |
tilt.attach(14); //D5 | |
pan.attach(4); //D2 | |
} | |
void loop () | |
{ | |
tilt.write(62); | |
delay(2000); | |
pan.write(109); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment