 
   DEBUG_PRINTLN("Starting the sorting machine...");
   motor_turn_analog(&motor_conveyor, 255);
-
-//  while (running){
-//    DEBUG_PRINTLN(get_range(RANGE_TRIG, RANGE_ECHO));
-//    delay(250);
-//  }
 }
 
 void motor_conveyor_interrupt() 

{
  advanced_motor_update_degrees(&adv_motor_separator);
  //DEBUG_PRINTLN("int");
}

void button_init(int16_t pin, void(*func)(void))
{
  pinMode(pin, INPUT_PULLUP);
  attachInterrupt(digitalPinToInterrupt(pin), func, RISING);
}

int32_t calibrate_ultra_sound_sensor()

  distance_to_wall = calibrate_ultra_sound_sensor();
  DEBUG_PRINT("--- distance_to_wall: "); DEBUG_PRINTLN(distance_to_wall);
  
  DEBUG_PRINTLN("- Motors...");
  motor_init(&motor_conveyor, 0.36, MOTOR_CONVEYOR_PIN, MOTOR_CONVEYOR_INT_PIN, 
    motor_conveyor_interrupt);
