Skip to content

Instantly share code, notes, and snippets.

@JosephGregg
Created February 10, 2018 19:20
Show Gist options
  • Save JosephGregg/52c6a47a884da25875b3c7b3be73fab5 to your computer and use it in GitHub Desktop.
Save JosephGregg/52c6a47a884da25875b3c7b3be73fab5 to your computer and use it in GitHub Desktop.
unique pan/tilt settings for new robot -- nodemcu
#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