<?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[Ext encoder button]]></title><description><![CDATA[<p dir="auto">Hi all</p>
<p dir="auto">I’ve successfully got a KY040 rotary encoder working with the m5Stack ext- encoder unit.</p>
<p dir="auto">I can register rotations but the part I haven’t made work is the push button - which is a straightforward contact button</p>
<p dir="auto">There is an input for it on the ext encoder marked as Z but I can’t find any documentation on how I read this button and there seem to be no functions in the class to handle it.</p>
<p dir="auto">Does anyone have any idea how I handle this?</p>
<p dir="auto">Thanks in advance</p>
]]></description><link>https://community.m5stack.com/topic/7158/ext-encoder-button</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 14:54:35 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/7158.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 04 Jan 2025 22:49:24 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Ext encoder button on Sun, 05 Jan 2025 07:55:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/teastain" aria-label="Profile: teastain">@<bdi>teastain</bdi></a> Thank you - I had misunderstood what the Z was for. Because on the ky040 the middle pin is for the "switch" functionality (i.e. pushing down on the encoder) I assumed it was for this. I realise now that I need to treat that as a button and take it off to a different pin, which I know how to do.</p>
<p dir="auto">Thanks for your help!</p>
]]></description><link>https://community.m5stack.com/post/27767</link><guid isPermaLink="true">https://community.m5stack.com/post/27767</guid><dc:creator><![CDATA[louisandthecat]]></dc:creator><pubDate>Sun, 05 Jan 2025 07:55:31 GMT</pubDate></item><item><title><![CDATA[Reply to Ext encoder button on Sun, 05 Jan 2025 03:43:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/louisandthecat" aria-label="Profile: louisandthecat">@<bdi>louisandthecat</bdi></a><br />
In robotics and CNC the Z input is the third phase of the encoder usually to tell the controller that you have gone around once.<br />
You have a KeyStudio encoder with only two phases and the third is the press to click.<br />
The library reads this as:<br />
#define UNIT_EXT_ENCODER_ZERO_PULSE_VALUE_REG 0x60<br />
#define UNIT_EXT_ENCODER_ZERO_MODE_REG        0x70<br />
Pushing it should Zero out the counts.<br />
What controller are you using?<br />
And what IDE are you programming in?</p>
]]></description><link>https://community.m5stack.com/post/27766</link><guid isPermaLink="true">https://community.m5stack.com/post/27766</guid><dc:creator><![CDATA[teastain]]></dc:creator><pubDate>Sun, 05 Jan 2025 03:43:22 GMT</pubDate></item></channel></rss>