 // Vertical axis
 #define StepPinV_Y                6
 #define DirectionPinV_Y           7
+#define JoyV_SW                   8
 #define JoyV_Y                    A2
 #define JoyV_X                    A3
 #define ServoV                    10
-
 
 Servo dvd_down;
 


	// Servo

	if (analogRead(JoyV_X)<400)
	{
		int y = map(analogRead(JoyV_X), 0, 1023, 900, 2100);
		dvd_down.write(y);
		delay(1000);
	}

	if (analogRead(JoyV_X)>600)
	{
		int y = map(analogRead(JoyV_X), 0, 1023, 900, 2100);
		dvd_down.write(y);
		delay(1000);
	}

}

	// DVD
	pinMode(DirectionPinV_Y, OUTPUT);
	pinMode(StepPinV_Y, OUTPUT);
	pinMode(JoyV_SW, INPUT);
	digitalWrite(DirectionPinV_Y, LOW);
	digitalWrite(StepPinV_Y, LOW);
	digitalWrite(JoyV_SW, HIGH);

	dvd_down.attach(ServoV);

