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 <Ultrasonic.h> | |
#include <Servo.h> | |
#define DISTANCE_PIN 6 | |
#define SERVO_PIN 7 | |
#define SERVO2_PIN 10 | |
#define PIN_MOVE 11 | |
Ultrasonic ultrasonic(DISTANCE_PIN); | |
Servo focusServo; // create servo object to control a servo |
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 <Ultrasonic.h> | |
Ultrasonic ultrasonic(7); | |
void setup() | |
{ | |
Serial.begin(9600); | |
} | |
void loop() | |
{ |