#ifndef _DEFINES_H_ #define _DEFINES_H_ #define F_CPU 8000000L #define TWI_PORT C #define TWI_SCL_PIN 5 #define TWI_SDA_PIN 4 #define DETECT_PORT C #define DETECT_PIN 3 #define RED_LED_PORT D #define RED_LED_PIN 4 #define GREEN_LED_PORT D #define GREEN_LED_PIN 3 #define BUTTON_A_PORT C #define BUTTON_A_PIN 1 #define BUTTON_B_PORT B #define BUTTON_B_PIN 4 #define BUTTON_X_PORT D #define BUTTON_X_PIN 0 #define BUTTON_Y_PORT B #define BUTTON_Y_PIN 5 #define BUTTON_UP_PORT B #define BUTTON_UP_PIN 1 #define BUTTON_DOWN_PORT D #define BUTTON_DOWN_PIN 6 #define BUTTON_LEFT_PORT B #define BUTTON_LEFT_PIN 2 #define BUTTON_RIGHT_PORT D #define BUTTON_RIGHT_PIN 7 #define BUTTON_SELECT_PORT C #define BUTTON_SELECT_PIN 0 #define BUTTON_START_PORT C #define BUTTON_START_PIN 2 #define BUTTON_L_PORT B #define BUTTON_L_PIN 3 #define BUTTON_R_PORT B #define BUTTON_R_PIN 0 #define BUTTON_ZL_PORT B #define BUTTON_ZL_PIN 6 #define BUTTON_ZR_PORT B #define BUTTON_ZR_PIN 7 #define BUTTON_HOME_PORT D #define BUTTON_HOME_PIN 5 #endif