<?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[TouchButton awol?]]></title><description><![CDATA[<p dir="auto">Trying to write my first arduino code using Touch.</p>
<p dir="auto">The API docs give several examples but none of them work. Using the code in the very first example for TouchEventStructures <a href="https://docs.m5stack.com/en/api/core2/touch" target="_blank" rel="noopener noreferrer nofollow ugc">https://docs.m5stack.com/en/api/core2/touch</a></p>
<p dir="auto">Errors include</p>
<ul>
<li>
<p dir="auto">5:1: error: 'TouchButton' does not name a type; did you mean 'Button'?<br />
TouchButton rt = TouchButton(160, 0, 160, 120, "right-top");</p>
</li>
<li>
<p dir="auto">9:19: error: variable or field 'eventDisplay' declared void<br />
void eventDisplay(TouchEvent&amp; e) {</p>
</li>
<li>
<p dir="auto">9:19: error: 'TouchEvent' was not declared in this scope</p>
</li>
</ul>
<p dir="auto">Using</p>
<ul>
<li>
<p dir="auto">Arduino IDE 2.0.3</p>
</li>
<li>
<p dir="auto">M5Core2 0.1.5</p>
</li>
<li>
<p dir="auto">Windows 11</p>
</li>
</ul>
]]></description><link>https://community.m5stack.com/topic/5010/touchbutton-awol</link><generator>RSS for Node</generator><lastBuildDate>Fri, 15 May 2026 20:36:59 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/5010.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 26 Jan 2023 14:25:26 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to TouchButton awol? on Fri, 27 Jan 2023 17:53:06 GMT]]></title><description><![CDATA[<p dir="auto">Have you got all the libraries imported?<br />
5.1 and 9.19 mean that they haven't been defined or the libraries not imported or that you are compiling for the wrong device.</p>
]]></description><link>https://community.m5stack.com/post/19946</link><guid isPermaLink="true">https://community.m5stack.com/post/19946</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Fri, 27 Jan 2023 17:53:06 GMT</pubDate></item><item><title><![CDATA[Reply to TouchButton awol? on Fri, 27 Jan 2023 08:32:59 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/brianteeman" aria-label="Profile: brianteeman">@<bdi>brianteeman</bdi></a></p>
<p dir="auto">the documentation is probably not fully up-to-date.</p>
<p dir="auto">Maybe checkout the description <a href="https://github.com/m5stack/M5Core2/blob/master/src/M5Touch.h" target="_blank" rel="noopener noreferrer nofollow ugc">here</a>.</p>
<p dir="auto">Also have a look at this <a href="https://github.com/m5stack/M5Core2/blob/master/examples/Touch/events_buttons_gestures_rotation/events_buttons_gestures_rotation.ino" target="_blank" rel="noopener noreferrer nofollow ugc">example</a>.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/19938</link><guid isPermaLink="true">https://community.m5stack.com/post/19938</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Fri, 27 Jan 2023 08:32:59 GMT</pubDate></item></channel></rss>