<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Momentary Power-button with LED?]]></title><description><![CDATA[<p dir="auto">Hello!</p>
<p dir="auto">I would like to add a Start-Stop-Button to my Recalbox according to <a href="https://github.com/recalbox/recalbox-os/wiki/Add-a-start-stop-button-to-your-recalbox-%28EN%29" rel="nofollow ugc">https://github.com/recalbox/recalbox-os/wiki/Add-a-start-stop-button-to-your-recalbox-(EN)</a> . This shall be a <em>momentary</em> switch, which I have already tested, no problems.</p>
<p dir="auto">Now, I would also like to add a Power-LED according to <a href="https://github.com/recalbox/recalbox-os/wiki/Add-a-start-stop-button-to-your-recalbox-%28EN%29" rel="nofollow ugc">https://github.com/recalbox/recalbox-os/wiki/Add-a-start-stop-button-to-your-recalbox-(EN)</a> .</p>
<p dir="auto">Is it possible to have a Power-LED <em>and</em> a <strong>momentary</strong> Start/Stop-button?</p>
<p dir="auto">As far as I understand the HowTo, the Power-LED is only working if you use a <strong>latching</strong> switch...</p>
<p dir="auto">Thanks a lot. Again</p>
<p dir="auto">René</p>
]]></description><link>https://forum.recalbox.com/topic/5701/momentary-power-button-with-led</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Jul 2026 08:17:49 GMT</lastBuildDate><atom:link href="https://forum.recalbox.com/topic/5701.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 08 Jan 2017 08:39:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Momentary Power-button with LED? on Fri, 17 Feb 2017 01:40:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.recalbox.com/uid/9732">@danlevrai</a></p>
<p dir="auto">Found my problem.... Hardware wiring issue. Thanks</p>
]]></description><link>https://forum.recalbox.com/post/46631</link><guid isPermaLink="true">https://forum.recalbox.com/post/46631</guid><dc:creator><![CDATA[danlevrai]]></dc:creator><pubDate>Fri, 17 Feb 2017 01:40:20 GMT</pubDate></item><item><title><![CDATA[Reply to Momentary Power-button with LED? on Fri, 10 Feb 2017 22:22:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.recalbox.com/uid/1919">@supernature2k</a></p>
<p dir="auto">Hi, I am new to this forum and I am really dumb with linux. I built a recalbox project recently. I installed a momentary push button switch to put the system in sleep mode as per instructions and love it. Now, I want to  install a "RUN" led. I read here that it is possible by modifying the <a href="http://rpi-pin356-power.py" rel="nofollow ugc">rpi-pin356-power.py</a> file. I did it as explained and rebooted the system. The led turns ON only during the time the button is pressed and turn OFF when I release the button like if it would be configured as a ON/OFF switch. I modified recalbox.conf file to enable  "system.power.switch=PIN356ONOFFRESET". It gave me the same result. The LED negative is connected to ground and the positive is on pin 8 (GPIO14) through a 150 ohms resistor. I really don't know what I am doing wrong.<br />
<img src="https://s3-eu-west-1.amazonaws.com/forums.recalbox.com/b3e10f4c-4bb6-42fd-8b49-aa6d36ec717e.jpg" alt="0_1486765312423_script_mod.jpg" class=" img-responsive img-markdown" /> Thank for your help.<br />
PS: Excuse my poor english<br />
Daniel from Quebec Canada<img src="https://s3-eu-west-1.amazonaws.com/forums.recalbox.com/53213105-5cd4-4942-af93-a9d186dac656.jpg" alt="0_1486765341624_recalbox_conf.jpg" class=" img-responsive img-markdown" /></p>
]]></description><link>https://forum.recalbox.com/post/46093</link><guid isPermaLink="true">https://forum.recalbox.com/post/46093</guid><dc:creator><![CDATA[danlevrai]]></dc:creator><pubDate>Fri, 10 Feb 2017 22:22:28 GMT</pubDate></item><item><title><![CDATA[Reply to Momentary Power-button with LED? on Tue, 10 Jan 2017 18:56:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.recalbox.com/uid/5761">@hanker</a></p>
<p dir="auto">We were talking about LED in script so I confirm, only pin356 handles the LED. Making it blink 3 times slow when powering off and 5 times quick when resetting.</p>
<p dir="auto">Now there are several other ways to make the LED work. You can put it on 5v or 3.3v GPIOs for example.</p>
]]></description><link>https://forum.recalbox.com/post/42216</link><guid isPermaLink="true">https://forum.recalbox.com/post/42216</guid><dc:creator><![CDATA[supernature2k]]></dc:creator><pubDate>Tue, 10 Jan 2017 18:56:41 GMT</pubDate></item><item><title><![CDATA[Reply to Momentary Power-button with LED? on Tue, 10 Jan 2017 18:43:21 GMT]]></title><description><![CDATA[<p dir="auto">FYI: Just tested Power LED and momentary switch with unmodified</p>
<p dir="auto">system.power.switch=PIN56PUSH</p>
<p dir="auto">The LED goes on at system start, switches off when the screen goes blank at boot-up, then goes on and stays that way. Switches off again at shutdown.</p>
<p dir="auto">Only difference when using the</p>
<p dir="auto">system.power.switch=PIN356ONOFFRESET</p>
<p dir="auto">script is that the Power LED <em>flashes</em> three(?) times after pressing the Power button.</p>
<p dir="auto">René</p>
]]></description><link>https://forum.recalbox.com/post/42213</link><guid isPermaLink="true">https://forum.recalbox.com/post/42213</guid><dc:creator><![CDATA[hanker]]></dc:creator><pubDate>Tue, 10 Jan 2017 18:43:21 GMT</pubDate></item><item><title><![CDATA[Reply to Momentary Power-button with LED? on Sun, 08 Jan 2017 15:50:04 GMT]]></title><description><![CDATA[<p dir="auto">Thanks, solved!  <img src="https://forum.recalbox.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=qq7v1sdgudo" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" title=":-)" alt="🙂" /></p>
]]></description><link>https://forum.recalbox.com/post/41849</link><guid isPermaLink="true">https://forum.recalbox.com/post/41849</guid><dc:creator><![CDATA[hanker]]></dc:creator><pubDate>Sun, 08 Jan 2017 15:50:04 GMT</pubDate></item><item><title><![CDATA[Reply to Momentary Power-button with LED? on Sun, 08 Jan 2017 15:43:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.recalbox.com/uid/5761">@hanker</a></p>
<p dir="auto">Yes, the LED is only handled in the Power/Reset script.</p>
]]></description><link>https://forum.recalbox.com/post/41845</link><guid isPermaLink="true">https://forum.recalbox.com/post/41845</guid><dc:creator><![CDATA[supernature2k]]></dc:creator><pubDate>Sun, 08 Jan 2017 15:43:03 GMT</pubDate></item><item><title><![CDATA[Reply to Momentary Power-button with LED? on Sun, 08 Jan 2017 11:00:23 GMT]]></title><description><![CDATA[<p dir="auto">Hello and thanks!</p>
<p dir="auto">But is this modification really nescessary?</p>
<p dir="auto">I mean: Does the Power LED only work with the Power/Reset-script and not the "only Power"-scripts (regardless if momentary or other switch)?</p>
]]></description><link>https://forum.recalbox.com/post/41805</link><guid isPermaLink="true">https://forum.recalbox.com/post/41805</guid><dc:creator><![CDATA[hanker]]></dc:creator><pubDate>Sun, 08 Jan 2017 11:00:23 GMT</pubDate></item><item><title><![CDATA[Reply to Momentary Power-button with LED? on Sun, 08 Jan 2017 08:56:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.recalbox.com/uid/5761">@hanker</a></p>
<p dir="auto">Hello!</p>
<p dir="auto">Yes, the script is designed to work with a momentary RESET button en a ON/OFF POWER button but you can really easily modify it:</p>
<p dir="auto">SSH your recalbox and do the following:</p>
<pre><code>cd /recalbox/scripts
mount -o remount, rw /
nano rpi-pin356-power.py
</code></pre>
<p dir="auto">Then in the editor, go at the end of the script and change:</p>
<pre><code>GPIO.add_event_detect(RESETPLUS, GPIO.FALLING, callback=button_pressed)
GPIO.add_event_detect(POWERPLUS, GPIO.RISING, callback=button_pressed)
</code></pre>
<p dir="auto">with:</p>
<pre><code>GPIO.add_event_detect(RESETPLUS, GPIO.FALLING, callback=button_pressed)
GPIO.add_event_detect(POWERPLUS, GPIO.FALLING, callback=button_pressed)
</code></pre>
]]></description><link>https://forum.recalbox.com/post/41778</link><guid isPermaLink="true">https://forum.recalbox.com/post/41778</guid><dc:creator><![CDATA[supernature2k]]></dc:creator><pubDate>Sun, 08 Jan 2017 08:56:22 GMT</pubDate></item></channel></rss>