Skip to content

Commit

Permalink
Release 1.0.3 from Google Code.
Browse files Browse the repository at this point in the history
  • Loading branch information
trash80 committed Jul 26, 2015
1 parent f31674e commit 03bd177
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 12 deletions.
6 changes: 3 additions & 3 deletions Arduinoboy/Arduinoboy.ino
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
***************************************************************************
***************************************************************************
* *
* Version: 1.0.2 *
* Date: Oct 12 2008 *
* Version: 1.0.3 *
* Date: Oct 22 2008 *
* Name: Timothy Lamb *
* Email: [email protected] *
* *
Expand Down Expand Up @@ -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= 10; //Byte pause for gbmidi mode .... 5 to 20 /// tested working value: 5=GBA/SP/GBC and 10=DMG
int gameboyBytePause= 20; //Byte pause for gbmidi mode .... 5 to 20 /// tested working value: 5=GBA/SP/GBC and 10=DMG

/***************************************************************************
* Lets Assign our Arduino Pins .....
Expand Down
27 changes: 18 additions & 9 deletions Arduinoboy/Mode_MidiGb.ino
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,16 @@ void modeMidiGb()
break;
default:
incomingMidiData[0] = incomingMidiByte;
midiValueMode = false;
midiAddressMode = true;
break;
midiNoteOffMode=true;
midiValueMode =false;
midiAddressMode=true;
if(incomingMidiData[0] < 0x90) {
incomingMidiData[0]+=0x10;
midiNoteOffMode =true;
} else {
midiNoteOffMode =false;
}
break;
}
} else if (midiAddressMode){
midiAddressMode = false;
Expand All @@ -46,15 +53,17 @@ void modeMidiGb()
incomingMidiData[2] = incomingMidiByte;
midiAddressMode = true;
midiValueMode = false;
addFSGameboyByte(incomingMidiData[0]);
addFSGameboyByte(incomingMidiData[1]);
addFSGameboyByte(incomingMidiData[2]);
blinkLight(incomingMidiData[0],incomingMidiData[2]);
if(midiNoteOffMode) incomingMidiData[2]=0x00;
addFSGameboyByte(incomingMidiData[0]);
addFSGameboyByte(incomingMidiData[1]);
addFSGameboyByte(incomingMidiData[2]);
blinkLight(incomingMidiData[0],incomingMidiData[2]);
}
} else {
setMode(); // Check if mode button was depressed
updateBlinkLights();
}
updateFSGameboyByteFrame(); // Send out Bytes to LSDJ
updateBlinkLights();
setMode(); // Check if mode button was depressed
}
}

Expand Down

0 comments on commit 03bd177

Please sign in to comment.