  *                                       PROGRAMA                                        *
  * ***************************************************************************************/
 
-void printButton(char* buttonName, int buttonId) {
-  Serial.print(buttonName),Serial.print(" = "),Serial.print(digitalRead(buttonId)),Serial.print("\t");
-}
-
-void printJoystick(int xAxisId, int yAxisId) {
-  Serial.print("X = "),Serial.print(map(analogRead(xAxisId), 0, 1023, -1, 1));Serial.print("\t");
-  Serial.print("Y = "),Serial.print(map(analogRead(yAxisId), 0, 1023, -1, 1));Serial.print("\n");
-}
-
 void update_servo(int axis_id, Servo* servo) {
   int val = analogRead(axis_id);
   val = map(val, 0, 1023, -100, 100);

#include <Servo.h>
#include "MyServo.h"

bool DEBUG = true;

/* ***************************************************************************************
 *                                      PINES BOTONERA                                   *
 * ***************************************************************************************/
const int up_button = 2;
const int down_button = 4;
const int left_button = 5;
const int right_button = 3;
const int start_button = 6;
const int select_button = 7;
const int analog_button = 8;
const int x_axis = A0;
const int y_axis = A1;
const int buttons[] = {up_button, down_button, left_button, right_button, start_button, select_button, analog_button};
const int buttons_quantity = 7;

/* ***************************************************************************************
 *                                     MAPEO A FUNCIONES                                 *
 * ***************************************************************************************/
const int boton_pinza = select_button;
const int boton_palito = down_button;
const int boton_cambios = analog_button;
const int boton_grabarHacer = left_button;
const int boton_preseteado = start_button;
const int boton_standby = right_button;
const int boton_giro[] = {x_axis, y_axis};

/* ***************************************************************************************
 *                                         MOTORES                                       *

}

void update_servos_pair() {
  update_servo(X_AXIS, &servo_base);
}

void loop() {
  update_servos_pair();
  delay(150);
}
