<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[ChipMusic.org - Arduinoboy code editing help]]></title>
	<link rel="self" href="https://chipmusic.org:80/forums/feed/atom/topic/19543/"/>
	<updated>2017-03-27T07:52:40Z</updated>
	<generator>PunBB</generator>
	<id>https://chipmusic.org/forums/topic/19543/arduinoboy-code-editing-help/</id>
		<entry>
			<title type="html"><![CDATA[Re: Arduinoboy code editing help]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/251851/#p251851"/>
			<content type="html"><![CDATA[<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>]]></content>
			<author>
				<name><![CDATA[eptheca]]></name>
				<uri>https://chipmusic.org/eptheca</uri>
			</author>
			<updated>2017-03-27T07:52:40Z</updated>
			<id>https://chipmusic.org/forums/post/251851/#p251851</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Arduinoboy code editing help]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/251849/#p251849"/>
			<content type="html"><![CDATA[<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>]]></content>
			<author>
				<name><![CDATA[eptheca]]></name>
				<uri>https://chipmusic.org/eptheca</uri>
			</author>
			<updated>2017-03-27T07:15:07Z</updated>
			<id>https://chipmusic.org/forums/post/251849/#p251849</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Arduinoboy code editing help]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/251846/#p251846"/>
			<content type="html"><![CDATA[<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>]]></content>
			<author>
				<name><![CDATA[eptheca]]></name>
				<uri>https://chipmusic.org/eptheca</uri>
			</author>
			<updated>2017-03-27T06:34:50Z</updated>
			<id>https://chipmusic.org/forums/post/251846/#p251846</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Arduinoboy code editing help]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/251839/#p251839"/>
			<content type="html"><![CDATA[<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>]]></content>
			<author>
				<name><![CDATA[Knife Crimes]]></name>
				<uri>https://chipmusic.org/Knife+Crimes</uri>
			</author>
			<updated>2017-03-26T22:14:49Z</updated>
			<id>https://chipmusic.org/forums/post/251839/#p251839</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Arduinoboy code editing help]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/251838/#p251838"/>
			<content type="html"><![CDATA[<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>]]></content>
			<author>
				<name><![CDATA[cyberic]]></name>
				<uri>https://chipmusic.org/cyberic</uri>
			</author>
			<updated>2017-03-26T21:40:36Z</updated>
			<id>https://chipmusic.org/forums/post/251838/#p251838</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Arduinoboy code editing help]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/251836/#p251836"/>
			<content type="html"><![CDATA[<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>]]></content>
			<author>
				<name><![CDATA[eptheca]]></name>
				<uri>https://chipmusic.org/eptheca</uri>
			</author>
			<updated>2017-03-26T19:41:55Z</updated>
			<id>https://chipmusic.org/forums/post/251836/#p251836</id>
		</entry>
</feed>
