<?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[Suggestion to add chr() function to UI Flow]]></title><description><![CDATA[<p dir="auto">Hi, I am new to M5Stack. I just began experimenting with a Core2 (fw V1.9.3). Via I2C/Grove connected a M5Stack CardKB. Reading keypresses from the CardKB go OK. But I want to print their ASCII equivalent to the Core2 display. In Python one would use the function chr(int_value) but this does not exist (as far as my experience goes). An altertive I tried with success is create a lookup Dictionary (called Maps in UI Flow) but one has to create a relatively large Map to cover all the key values and their respective ASCII values (between 32 and 127). If we compare this with a simple instruction chr() the difference is big. The size of the script could be much more short.<br />
That is why I post here this suggestion for the maintainers of the UI Flow IDE to add in the TEXT secition a block similar to "convert to str" a "convert int to ascii", "convert with chr()"  or any other suitable phrase.</p>
]]></description><link>https://community.m5stack.com/topic/4107/suggestion-to-add-chr-function-to-ui-flow</link><generator>RSS for Node</generator><lastBuildDate>Thu, 14 May 2026 10:17:12 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/4107.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 08 Mar 2022 10:45:26 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Suggestion to add chr() function to UI Flow on Tue, 08 Mar 2022 16:11:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/felmue" aria-label="Profile: felmue">@<bdi>felmue</bdi></a> thank you very much. I go to try that. In the mean time I discovered that the function cardkb_getstring covers more or less what I wanted to achieve.</p>
]]></description><link>https://community.m5stack.com/post/16871</link><guid isPermaLink="true">https://community.m5stack.com/post/16871</guid><dc:creator><![CDATA[Paulskpt]]></dc:creator><pubDate>Tue, 08 Mar 2022 16:11:10 GMT</pubDate></item><item><title><![CDATA[Reply to Suggestion to add chr() function to UI Flow on Tue, 08 Mar 2022 13:42:43 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/paulskpt" aria-label="Profile: Paulskpt">@<bdi>Paulskpt</bdi></a></p>
<p dir="auto">some functionality which is not directly available as block can still be used via the <code>Execute code</code> block from the <code>Advanced</code> section. I've just tried that and <code>chr()</code> can be used that way.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/16867</link><guid isPermaLink="true">https://community.m5stack.com/post/16867</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Tue, 08 Mar 2022 13:42:43 GMT</pubDate></item></channel></rss>