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
//Laad de servo bibliotheek zodat je het zelf niet hoeft te schrijven. | |
#include <Servo.h> | |
//IR_SENSOR | |
static int ir_sensor = 0; //Analoge poort A0 | |
static int ir_threshold = 400; //0-1023 [0 = 0v / 1023 = 5v] | |
int ir_value; | |
//SERVO | |
static int servo_pin_left = 2; //Digital pin 2 |
NewerOlder