 File romFile;
 
 void setup() {
+  pinMode(SD_CS, OUTPUT);
   pinMode(CLOCK, OUTPUT);
   pinMode(LATCH, OUTPUT);
   pinMode(DATA, OUTPUT);
   pinMode(WESRAM, OUTPUT);
-  pinMode(OEDATA, OUTPUT);
-  pinMode(OEADDRESS, OUTPUT);
+  pinMode(OESHIFT, OUTPUT);
   pinMode(OEVCBUS, OUTPUT);
   pinMode(LED, OUTPUT);
 


  // Write ROM file to SRAM
  if (romFile) {
    enableSRAM();
    unsigned romSize = static_cast<unsigned>(romFile.size());
    if (romSize <= MAX_ROM_SIZE) {
      for (unsigned i = 0; i < romSize; i++) {

  delay(blinkTimeLow);
}

/*void enableSRAM() {
  pinMode(CE1SRAM, OUTPUT);
  pinMode(CE2SRAM, OUTPUT);
  digitalWrite(CE1SRAM, LOW);
  digitalWrite(CE2SRAM, HIGH);
}*/

void disableVCBus() {
  digitalWrite(WESRAM, HIGH);
  digitalWrite(OESHIFT, LOW);
  digitalWrite(OEVCBUS, HIGH);
}

void enableVCBus() {
  digitalWrite(WESRAM, HIGH);
  digitalWrite(OESHIFT, HIGH);
  digitalWrite(OEVCBUS, LOW);
  delay(100);
  // handover R/W control to VC4000
