diff --git a/Arduinoboy/Arduinoboy.ino b/Arduinoboy/Arduinoboy.ino index 46a2c89..5f2b5b0 100644 --- a/Arduinoboy/Arduinoboy.ino +++ b/Arduinoboy/Arduinoboy.ino @@ -10,8 +10,8 @@ *************************************************************************** *************************************************************************** * * - * Version: 1.0.4 * - * Date: Oct 25 2008 * + * Version: 1.0.5 * + * Date: Oct 28 2008 * * Name: Timothy Lamb * * Email: trash80@gmail.com * * * @@ -89,7 +89,7 @@ boolean usbMode = false; //to use usb for serial communication as oppose to MI int gameboyBitPauseLOW = 5; //Bit pause for gbmidi mode .... 1 to 10 /// tested working value: 5=GBA/SP/DMG01 --- int gameboyBitPauseHIGH = 1; //Bit pause for gbmidi mode .... 1 to 10 /// tested working value: 1=GBA/SP/DMG01 --- (note: roughly 4 microseconds off from Low do to code that writes to the serial line) -int gameboyBytePause= 30; //Byte pause for gbmidi mode .... 5 to 20 /// tested working value: 5=GBA/SP/GBC and 10=DMG +int gameboyBytePause= 10; //Byte pause for gbmidi mode .... 5 to 20 /// tested working value: 5=GBA/SP/GBC and 10=DMG /*************************************************************************** * Lets Assign our Arduino Pins ..... diff --git a/Arduinoboy/Mode_MidiGb.ino b/Arduinoboy/Mode_MidiGb.ino index 482d10c..e496bc9 100644 --- a/Arduinoboy/Mode_MidiGb.ino +++ b/Arduinoboy/Mode_MidiGb.ino @@ -22,11 +22,10 @@ void modeMidiGbSetup() void modeMidiGb() { while(1){ //Loop foreverrrr - + updateFSGameboyByteFrame(); if (Serial.available() > 0) { //If MIDI is sending incomingMidiByte = Serial.read(); //Get the byte sent from MIDI addFSGameboyByte(incomingMidiByte); - //if(!usbMode) Serial.print(incomingMidiByte, BYTE); //Echo the Byte to MIDI Output if(incomingMidiByte > 0x7F) { switch (incomingMidiByte & 0xF0) { @@ -52,11 +51,11 @@ void modeMidiGb() midiValueMode = false; blinkLight(incomingMidiData[0],incomingMidiData[2]); } + } else { setMode(); // Check if mode button was depressed updateBlinkLights(); } - updateFSGameboyByteFrame(); // Send out Bytes to LSDJ } }