int ledpin=12; // Define the digital interface signal line 12 is connected to the landing gear

int NbTrial = 1;

‪#‎include‬ <Servo.h> // servo library

Servo servo1; // servo control object

void Retract() { int position;

// Tell servo to go to 180 degrees, stepping by two degrees for(position = 0; position < 180; position += 1) { servo1.write(position); // Move to next position delay(50); // Short pause to allow it to move } }