Skip to content

Instantly share code, notes, and snippets.

@restrepo
Created October 2, 2016 22:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save restrepo/6c07b1c2ddac1a30128a7ad600329b32 to your computer and use it in GitHub Desktop.
Save restrepo/6c07b1c2ddac1a30128a7ad600329b32 to your computer and use it in GitHub Desktop.
#include <Servo.h>
Servo myservo;
Servo myservo2;
const int sensor = 2;
const int ledr= 12;
const int ledv = 13;
int pos = 0;
void setup()
{
pinMode(sensor, INPUT);
pinMode(ledv, OUTPUT);
pinMode(ledr, OUTPUT);
myservo.attach(9);
myservo2.attach(8);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment