<?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[Display Module block is not working]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/m5stack" aria-label="Profile: m5stack">@<bdi>m5stack</bdi></a><br />
In the module "Display", the block "Module Display config" generates the following upython code and error message:</p>
<p dir="auto"><code>module_display = M5.addDisplay({"module_display":{enabled:True, width:1920, height:480, refresh_rate:60, scale_w:0, scale_h:0, pixel_clock:7425000}})</code></p>
<p dir="auto">NameError: name 'enabled' isn't defined</p>
<p dir="auto">The correct python syntax that should be generated, with strings double-quoted, is:</p>
<p dir="auto"><code>module_display = M5.addDisplay({"module_display":{"enabled":True, "width":1920, "height":480, "refresh_rate":60, "scale_w":0, "scale_h":0, "pixel_clock":7425000}})</code></p>
<p dir="auto">Manually entering the above adds in the second display without errors, but putting that code in an "execute mpy code" block instead makes the UI editor unusable</p>
]]></description><link>https://community.m5stack.com/topic/6307/display-module-block-is-not-working</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 11:06:11 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/6307.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 07 Apr 2024 09:08:53 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Display Module block is not working on Fri, 12 Apr 2024 02:04:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dissy" aria-label="Profile: dissy">@<bdi>dissy</bdi></a> Processing</p>
]]></description><link>https://community.m5stack.com/post/24748</link><guid isPermaLink="true">https://community.m5stack.com/post/24748</guid><dc:creator><![CDATA[lbuque]]></dc:creator><pubDate>Fri, 12 Apr 2024 02:04:26 GMT</pubDate></item></channel></rss>