Skip to content

Instantly share code, notes, and snippets.

#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
#include <Ultrasonic.h>
Ultrasonic ultrasonic(7);
void setup()
{
Serial.begin(9600);
}
void loop()
{