Created
October 2, 2016 22:50
-
-
Save restrepo/6c07b1c2ddac1a30128a7ad600329b32 to your computer and use it in GitHub Desktop.
This file contains 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 <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