<?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[How to switch the Atom Socket(HLW8023) on&#x2F;off?]]></title><description><![CDATA[<p dir="auto">I can't get any description about the HLW8032 Socket's controll ways. Could anybody who has the python code to do this give me some tips? Thanks a lot.</p>
]]></description><link>https://community.m5stack.com/topic/4088/how-to-switch-the-atom-socket-hlw8023-on-off</link><generator>RSS for Node</generator><lastBuildDate>Sun, 08 Mar 2026 18:00:04 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/4088.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 27 Feb 2022 13:54:21 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to switch the Atom Socket(HLW8023) on&#x2F;off? on Tue, 01 Mar 2022 16:16:47 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/17533">@tgprivate</a></p>
<p dir="auto">glad to hear it worked. And thank you for reporting back.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/16803</link><guid isPermaLink="true">https://community.m5stack.com/post/16803</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Tue, 01 Mar 2022 16:16:47 GMT</pubDate></item><item><title><![CDATA[Reply to How to switch the Atom Socket(HLW8023) on&#x2F;off? on Tue, 01 Mar 2022 13:15:40 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/4037">@felmue</a> It works according to your method, thank you very much!</p>
]]></description><link>https://community.m5stack.com/post/16801</link><guid isPermaLink="true">https://community.m5stack.com/post/16801</guid><dc:creator><![CDATA[tgprivate]]></dc:creator><pubDate>Tue, 01 Mar 2022 13:15:40 GMT</pubDate></item><item><title><![CDATA[Reply to How to switch the Atom Socket(HLW8023) on&#x2F;off? on Sun, 27 Feb 2022 17:16:39 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/17533">@tgprivate</a></p>
<p dir="auto">from the <a href="https://docs.m5stack.com/en/atom/atom_socket" target="_blank" rel="noopener noreferrer nofollow ugc">schematic</a> the relay is switched on/off through GPIO23.</p>
<p dir="auto">Using UiFlow Pin blocks and looking at the Python code I get this:</p>
<pre><code>from m5stack import *
from m5ui import *
from uiflow import *
import machine

pin0 = machine.Pin(23, mode=machine.Pin.OUT, pull=machine.Pin.PULL_UP)
pin0.on()
pin0.off()
</code></pre>
<p dir="auto">Note: untested</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/16790</link><guid isPermaLink="true">https://community.m5stack.com/post/16790</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Sun, 27 Feb 2022 17:16:39 GMT</pubDate></item></channel></rss>