<?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[m5list on Core2]]></title><description><![CDATA[<p dir="auto">Hi there.</p>
<p dir="auto">I am trying to use the m5list on the Core2.<br />
I am using the following Micropython code</p>
<p dir="auto">(Sorry, I did not get to post as a 'real' code snippet)</p>
<blockquote>
<p dir="auto">from m5stack_ui import M5List<br />
lGraph = M5List(0,0)<br />
h1 = lGraph.add_label('PT1')<br />
h2 = lGraph.add_label('PT2')<br />
lGraph.get_sel_label_index()</p>
</blockquote>
<p dir="auto">Depending on what is selected, I could retrieve the selection with</p>
<blockquote>
<p dir="auto">lGraph.get_sel_label_index()</p>
</blockquote>
<p dir="auto">So, I get 0 or 1.<br />
So far so good.<br />
When nothing is selected, that means the display was touched somewhere not within the list or when the list was created and it was not clicked on a list item, then the function does not return any thing and blocks the Core2 until a manual reset occurs.<br />
Could you please help me to avoid this behaviour?<br />
Thank you</p>
]]></description><link>https://community.m5stack.com/topic/4102/m5list-on-core2</link><generator>RSS for Node</generator><lastBuildDate>Thu, 30 Apr 2026 15:16:23 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/4102.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 07 Mar 2022 10:10:21 GMT</pubDate><ttl>60</ttl></channel></rss>