<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[SoliForum - 3D Printing Community — Green Power Light]]></title>
	<link rel="self" href="https://www.soliforum.com/feed/atom/topic/9515/" />
	<updated>2015-01-28T15:53:41Z</updated>
	<generator>PunBB</generator>
	<id>https://www.soliforum.com/topic/9515/green-power-light/</id>
		<entry>
			<title type="html"><![CDATA[Re: Green Power Light]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/82027/#p82027" />
			<content type="html"><![CDATA[<p>No source was released for the attiny.&nbsp; They are not obligated to do so as it likely was not based on an open source project.</p><br /><p>I confirmed the following codes to control the green light.</p><ul><li><p>Code M100 will command the green light to fade in and out.</p></li><li><p>Code M101 will command the green light to be steady.</p></li></ul><p>I also noticed that the attiny takes a few seconds for the light to respond to the command.&nbsp; Processes the light animation in a loop, and checks the input PRINTING_PIN before processing the animation again.</p>]]></content>
			<author>
				<name><![CDATA[thatdecade]]></name>
				<uri>https://www.soliforum.com/user/7020/</uri>
			</author>
			<updated>2015-01-28T15:53:41Z</updated>
			<id>https://www.soliforum.com/post/82027/#p82027</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Green Power Light]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/81641/#p81641" />
			<content type="html"><![CDATA[<p>Wasn&#039;t it a tad overkill for them to add an Attiny just for this? Surely it does more, or there was an easier way and they didn&#039;t do it... Did they release the code running on the Attiny as well? It would be nice to know what it does so button functionality could be transferred to another board.</p>]]></content>
			<author>
				<name><![CDATA[jagowilson]]></name>
				<uri>https://www.soliforum.com/user/7321/</uri>
			</author>
			<updated>2015-01-26T15:33:18Z</updated>
			<id>https://www.soliforum.com/post/81641/#p81641</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Green Power Light]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/81635/#p81635" />
			<content type="html"><![CDATA[<p>I notice that when I print in soliprint that the power lights on my press will fade in and out.&nbsp; Then when I print in RH the glow is steady and unchanging.&nbsp; That leads me to believe that there is an extra serial command that soliprint sends to control the green power lights.&nbsp; For fun, I want to add that command to my RH start script.</p><br /><p>I don&#039;t have my printer in front of me this morning to test, but I found a few clues in the source code.&nbsp; Nothing about lights or LEDs for the Printrboard motherboard, but there is an output pin defined to tell the attiny chip to do something.&nbsp; I seem to remember it mentioned that this attiny chip is a new addition, only for the Press.&nbsp; If the attiny is the controller for the lights, then codes M100 and M101 would seem to control the lights.</p><div class="codebox"><pre><code>#define PRINTING_PIN         PIND4            // OUTPUT tell ATtiny we are printing</code></pre></div><div class="codebox"><pre><code>        case 100: // M100 - set printing status
        {
            digitalWrite(PRINTING_PIN, HIGH);
            SERIAL_ECHOLNPGM(&quot;Print started&quot;);
            break;
        }
        case 101: // M101 - turn off printing status
        {
          digitalWrite(PRINTING_PIN, LOW);
            SERIAL_ECHOLNPGM(&quot;Print ended&quot;);
            break;
        }</code></pre></div>]]></content>
			<author>
				<name><![CDATA[thatdecade]]></name>
				<uri>https://www.soliforum.com/user/7020/</uri>
			</author>
			<updated>2015-01-26T15:18:44Z</updated>
			<id>https://www.soliforum.com/post/81635/#p81635</id>
		</entry>
</feed>
