 
 void setup() {
   megadrive_read_buttons();
-
-  Serial.begin(9600);
 }
 
 void snes_read_button_raw(int button_index){

}

void megadrive_read_axis_y(int pin_index, int axis_value){
  if(digitalRead(pin_index)){
    hat_direction = axis_value;
  }
}

void megadrive_read_axis_x(int pin_index, int direction){
  if(digitalRead(pin_index)){

    if(hat_direction == HAT_DEFAULT){
      hat_direction = direction;

  snes_read_button(SNES_BUTTON_X);
  snes_read_button(SNES_BUTTON_L);
  snes_read_button(SNES_BUTTON_R);
  //wait for next frame
  delay(16);
  delayMicroseconds(466); 
}

void loop() {
