<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[ChipMusic.org - Arduinoboy code editing help]]></title>
		<link>https://chipmusic.org/forums/topic/19543/arduinoboy-code-editing-help/</link>
		<description><![CDATA[The most recent posts in Arduinoboy code editing help.]]></description>
		<lastBuildDate>Mon, 27 Mar 2017 07:52:40 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Arduinoboy code editing help]]></title>
			<link>https://chipmusic.org/forums/post/251851/#p251851</link>
			<description><![CDATA[<b><i>eptheca says:</i></b><p>Never mind, I found the correct google search words, and the solution was already here on this site.</p><p>Sincere apologies for any inconvenience <img src="https://chipmusic.org/forums/img/smilies/wink.png" width="15" height="15" alt="wink" /></p><div class="quotebox"><cite>Boner wrote:</cite><blockquote><p>in the main sketch file change these lines</p><div class="quotebox"><blockquote><p>boolean alwaysUseDefaultSettings = false;&nbsp; //set to true to always use the settings below, else they are pulled from memory for the software editor</p><p>0x00, //force mode (forces lsdj to be sl)<br />0x00, //mode</p></blockquote></div><p>to</p><div class="quotebox"><blockquote><p>boolean alwaysUseDefaultSettings = true;</p><p>0x01, //force mode<br />0x05, //mode</p></blockquote></div><p>so force mode is enabled, and //mode is the mode you want it to be forced to, in this case mode 5 - MGB. Leave out all the LEDs besides status. tie pin 3 to ground so the mode isn&#039;t accidentally switched. you can do this to make a stripped down arduinoboy for any mode.</p></blockquote></div>]]></description>
			<pubDate>Mon, 27 Mar 2017 07:52:40 +0000</pubDate>
			<guid>https://chipmusic.org/forums/post/251851/#p251851</guid>
		</item>
		<item>
			<title><![CDATA[Re: Arduinoboy code editing help]]></title>
			<link>https://chipmusic.org/forums/post/251849/#p251849</link>
			<description><![CDATA[<b><i>eptheca says:</i></b><p>Or if someone knows a way to alter the code so it only uses one mode, lets say mGB mode.<br />That way I can omit the 5 mode LED&#039;s and the button and all the code relating to the LED&#039;s, modes etc. <img src="https://chipmusic.org/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<pubDate>Mon, 27 Mar 2017 07:15:07 +0000</pubDate>
			<guid>https://chipmusic.org/forums/post/251849/#p251849</guid>
		</item>
		<item>
			<title><![CDATA[Re: Arduinoboy code editing help]]></title>
			<link>https://chipmusic.org/forums/post/251846/#p251846</link>
			<description><![CDATA[<b><i>eptheca says:</i></b><p>Hi,</p><p>thanks for the suggestions.</p><p>I figured out those two. The problem is all the LED handling and eeprom settings in Led_Functions.ino and Memory_Functions.ino. They seem to be coded around the 5 LED&#039;s in order.</p>]]></description>
			<pubDate>Mon, 27 Mar 2017 06:34:50 +0000</pubDate>
			<guid>https://chipmusic.org/forums/post/251846/#p251846</guid>
		</item>
		<item>
			<title><![CDATA[Re: Arduinoboy code editing help]]></title>
			<link>https://chipmusic.org/forums/post/251839/#p251839</link>
			<description><![CDATA[<b><i>Knife Crimes says:</i></b><p>Hey eptheca,</p><p>Here&#039;s how I&#039;d do it, starting with the version at <a href="https://github.com/trash80/Arduinoboy" target="_blank">https://github.com/trash80/Arduinoboy</a>;</p><p>In the file Mode.ino edit the function switchMode() as follows;</p><p>void switchMode()<br />{<br />&nbsp; switch(memory[MEM_MODE])<br />&nbsp; {<br />&nbsp; &nbsp; case 0:<br />&nbsp; &nbsp; &nbsp; modeLSDJSlaveSyncSetup();<br />&nbsp; &nbsp; &nbsp; break;<br />&nbsp; &nbsp; case 1:<br />&nbsp; &nbsp; &nbsp; modeMidiGbSetup();<br />&nbsp; &nbsp; &nbsp; break;<br />&nbsp; }<br />}</p><p>And in the file Arduinoboy.ino, change the line;</p><p>#define NUMBER_OF_MODES 7&nbsp; &nbsp; //Right now there are 7 modes, Might be more in the future</p><p>to:</p><p>#define NUMBER_OF_MODES 2</p><br /><p>That should pretty much do what you want.</p>]]></description>
			<pubDate>Sun, 26 Mar 2017 22:14:49 +0000</pubDate>
			<guid>https://chipmusic.org/forums/post/251839/#p251839</guid>
		</item>
		<item>
			<title><![CDATA[Re: Arduinoboy code editing help]]></title>
			<link>https://chipmusic.org/forums/post/251838/#p251838</link>
			<description><![CDATA[<b><i>cyberic says:</i></b><p>Hi<br />There is a version that only implements midi out mode, here:<br /><a href="https://github.com/ledfyr/ab-midiout-lite" target="_blank">https://github.com/ledfyr/ab-midiout-lite</a><br />Maybe that can help</p>]]></description>
			<pubDate>Sun, 26 Mar 2017 21:40:36 +0000</pubDate>
			<guid>https://chipmusic.org/forums/post/251838/#p251838</guid>
		</item>
		<item>
			<title><![CDATA[Arduinoboy code editing help]]></title>
			<link>https://chipmusic.org/forums/post/251836/#p251836</link>
			<description><![CDATA[<b><i>eptheca says:</i></b><p>Hi,<br />I want to build an Arduinoboy with only two modes, LSDJ Slave Mode and MIDI Game Boy<br />Has anybody done similar changes to the code? or have any suggestions to where to find all the different parts of code that relate to the Mode functions?</p><p>I started to delete the obvious, and change void switchMode to the two modes, but there&#039;s a lot of entries related to the LED&#039;s and eeprom that I don&#039;t get.<br />appreciate any pointers </p><p>Cheers, Hal</p>]]></description>
			<pubDate>Sun, 26 Mar 2017 19:41:55 +0000</pubDate>
			<guid>https://chipmusic.org/forums/post/251836/#p251836</guid>
		</item>
	</channel>
</rss>
