ROM-Reader for Super Nintendo / Super Famicom Game Cartridges

Yes it's inside gb.ino, right now WE/WR is set to PH5.

void setup_GB() {
// Set RST(PH0) to Input
DDRH &= ~(1 << 0);
// Activate Internal Pullup Resistors
PORTH |= (1 << 0);

// Set Address Pins to Output
//A0-A7
DDRF = 0xFF;
//A8-A15
DDRK = 0xFF;

// Set Control Pins to Output CS(PH3) WR(PH5) RD(PH6)
DDRH |= (1 << 3) | (1 << 5) | (1 << 6);
// Output a high signal on all pins, pins are active low therefore everything is disabled now
PORTH |= (1 << 3) | (1 << 5) | (1 << 6);

void writeByte_GB(int myAddress, uint8_t myData) {
PORTF = myAddress & 0xFF;
PORTK = (myAddress >> 8) & 0xFF;
PORTC = myData;

// Arduino running at 16Mhz -> one nop = 62.5ns
// Wait till output is stable
asm("nop\n\t""nop\n\t""nop\n\t""nop\n\t");

// Pull WR(PH5) low
PORTH &= ~(1 << 5);

// Leave WE low for at least 60ns
asm("nop\n\t""nop\n\t""nop\n\t""nop\n\t");

// Pull WR(PH5) HIGH
PORTH |= (1 << 5);

// Leave WE high for at least 50ns
asm("nop\n\t""nop\n\t""nop\n\t""nop\n\t");
}

The pinout.xls from the github will help you with figuring out what Arduino pin is connected to which GB cart slot pin.