<?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[Header and Buttons Only]]></title><description><![CDATA[<p dir="auto">Greetings,</p>
<p dir="auto">First and foremost, thank you <a href="http://community.m5stack.com/user/rop" target="_blank" rel="noopener noreferrer nofollow ugc">Rop</a> for writing this library, saved me a ton of time.</p>
<p dir="auto">I'm currently working on a M5Stack Gray application and want only the header, and a couple buttons; I'll add task code (yield) or interrupts later. I first want to get the UI working.</p>
<p dir="auto">I have no issues getting the header to display as I wish.<br />
I have no problems getting the buttons to display.</p>
<p dir="auto">However, I am not able to read the buttons. Calling the ez.buttons.poll() in my loop does not ever return any key pressed.</p>
<p dir="auto">Can you please show me an example of just a header, buttons and a means of retrieving the pressed button.</p>
<p dir="auto">Thank you!</p>
]]></description><link>https://community.m5stack.com/topic/1355/header-and-buttons-only</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 04:48:00 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/1355.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 02 Oct 2019 17:27:55 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Header and Buttons Only on Thu, 03 Oct 2019 10:28:44 GMT]]></title><description><![CDATA[<p dir="auto">Hi Bob,</p>
<p dir="auto">I don't check this forum that regularly, so you're kind of lucky I see this. It's best to open an issue on the M5ez github.</p>
<p dir="auto">As for your question: <code>ez.buttons.poll()</code> should return the key pressed, or an empty string if nothing is pressed, so you are presumably calling it from inside a loop? If you have nothing else to do in that loop and just want the the code to wait for a keypress, use <code>ez.buttons.wait()</code> instead. Let me know if this was not the issue, and in that case maybe show the code.</p>
<p dir="auto">Rop</p>
]]></description><link>https://community.m5stack.com/post/5798</link><guid isPermaLink="true">https://community.m5stack.com/post/5798</guid><dc:creator><![CDATA[Rop]]></dc:creator><pubDate>Thu, 03 Oct 2019 10:28:44 GMT</pubDate></item></channel></rss>