<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
               xmlns:atom="http://www.w3.org/2005/Atom"
               xmlns:dc="http://purl.org/dc/elements/1.1/"
               xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
               xmlns:admin="http://webns.net/mvcb/"
               xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
               xmlns:content="http://purl.org/rss/1.0/modules/content/">
            <channel>
                <title>
					                		Light control with switches - Prusa add-ons (GPIO, accelerometer,...)                                    </title>
                <link>https://forum.prusa3d.com/forum/english-forum-original-prusa-i3-mk4s-add-ons/light-control-with-switches/</link>
                <description>Prusa3D Forum Discussion Board</description>
                <language>en-US</language>
                <lastBuildDate>Wed, 11 Mar 2026 19:30:38 +0000</lastBuildDate>
                <generator>wpForo</generator>
                <ttl>60</ttl>
                					                    <item>
                        <title>Light control with switches</title>
                        <link>https://forum.prusa3d.com/forum/english-forum-original-prusa-i3-mk4s-add-ons/light-control-with-switches/#post-726196</link>
                        <pubDate>Mon, 04 Nov 2024 22:30:43 +0000</pubDate>
                        <description><![CDATA[I would like to use the hackerboard to control a light above my printer. I have Arduino experience so I know how to wire the output pin control to a relay and how to connect momentary switch...]]></description>
                        <content:encoded><![CDATA[<p>I would like to use the hackerboard to control a light above my printer. I have Arduino experience so I know how to wire the output pin control to a relay and how to connect momentary switches to input pins.  My questions are around the g code part of this:</p><p>1. Can g codes be sent to control the output pin while a print job is running without affecting printing?</p><p>2. Is it possible and if so how would one trigger the on or off control from the Prusa Connect dashboard?  Can it be tied to specific key presses?</p><p>3. How would I set it up such that when an input changes on the hackerboard (button press) the g codes to change the output is sent?</p><p>4. It appears there would be a series of g codes sent to the printer when it powers up to tell the pins to be inputs or outputs.  The g codes to do the real time control part go into a file that is stored on the USB stick, correct?</p><p>Thanks for any help!</p>]]></content:encoded>
                        <category domain="https://forum.prusa3d.com/forum/english-forum-original-prusa-i3-mk4s-add-ons/">Prusa add-ons (GPIO, accelerometer,...)</category>                        <dc:creator>Bruce</dc:creator>
                        <guid isPermaLink="true">https://forum.prusa3d.com/forum/english-forum-original-prusa-i3-mk4s-add-ons/light-control-with-switches/#post-726196</guid>
                    </item>
                                                </channel>
        </rss>
        