#ifndef ULTRASOUND_H #define ULTRASOUND_H #include #include struct UltrasonicPin { int trig; int echo; }; struct Ultrasonic { static UltrasonicPin pin; static float distance; static void init(UltrasonicPin pin, int servoPin); static void update(); static int servoPin; static int angle; static Servo servo; static void servoControl(int angle); }; #endif