<?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[M5Dial and Canvas in Lcd module]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">I'm trying to use the Canvas in Micropython and can't get things working.</p>
<blockquote>
<p dir="auto">from M5 import Lcd<br />
toto=Lcd.newCanvas(60,50)<br />
print(toto.width(),toto.height())<br />
toto.fillCircle(x=10,y=10,r=5,color=0xffffff) # centre<br />
toto.push(0,0)</p>
</blockquote>
<p dir="auto">This does not display anything :/</p>
<p dir="auto">I see that newCanvas can accept up to 4 arguments but can't find their signification.</p>
<p dir="auto">Any help ?</p>
<p dir="auto">Thansk !</p>
]]></description><link>https://community.m5stack.com/topic/6097/m5dial-and-canvas-in-lcd-module</link><generator>RSS for Node</generator><lastBuildDate>Sun, 15 Mar 2026 20:04:03 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/6097.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 16 Feb 2024 21:21:43 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to M5Dial and Canvas in Lcd module on Sun, 18 Feb 2024 19:59:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/4037">@felmue</a> many thanks !</p>
]]></description><link>https://community.m5stack.com/post/23893</link><guid isPermaLink="true">https://community.m5stack.com/post/23893</guid><dc:creator><![CDATA[Microbug]]></dc:creator><pubDate>Sun, 18 Feb 2024 19:59:12 GMT</pubDate></item><item><title><![CDATA[Reply to M5Dial and Canvas in Lcd module on Sun, 18 Feb 2024 13:31:55 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/36976">@Microbug</a></p>
<p dir="auto">it looks like bits per pixel (bbp) and whether device has PSRAM or not. See <a href="https://github.com/m5stack/uiflow-micropython/blob/master/m5stack/modules/startup/basic/__init__.py#L15" target="_blank" rel="noopener noreferrer nofollow ugc">here</a> and <a href="https://github.com/m5stack/uiflow-micropython/blob/master/m5stack/modules/startup/core2/__init__.py#L26" target="_blank" rel="noopener noreferrer nofollow ugc">here</a>.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/23882</link><guid isPermaLink="true">https://community.m5stack.com/post/23882</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Sun, 18 Feb 2024 13:31:55 GMT</pubDate></item><item><title><![CDATA[Reply to M5Dial and Canvas in Lcd module on Sat, 17 Feb 2024 20:30:25 GMT]]></title><description><![CDATA[<p dir="auto">omg , I feel so stupid !</p>
<p dir="auto">Many thanks !</p>
<p dir="auto">Any idea for the 2 more parameters on newCanvas ?</p>
]]></description><link>https://community.m5stack.com/post/23872</link><guid isPermaLink="true">https://community.m5stack.com/post/23872</guid><dc:creator><![CDATA[Microbug]]></dc:creator><pubDate>Sat, 17 Feb 2024 20:30:25 GMT</pubDate></item><item><title><![CDATA[Reply to M5Dial and Canvas in Lcd module on Fri, 16 Feb 2024 23:32:27 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/36976">@Microbug</a></p>
<p dir="auto">it looks like the circle is in the invisible upper left corner of the round display. Moving it helps. Try this:</p>
<pre><code>  from M5 import Lcd
  Lcd.clear() # added
  toto=Lcd.newCanvas(60,50)
  print(toto.width(),toto.height())
  toto.fillCircle(x=50,y=40,r=5,color=0xffffff) # modified
  toto.push(0,0)
</code></pre>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/23852</link><guid isPermaLink="true">https://community.m5stack.com/post/23852</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Fri, 16 Feb 2024 23:32:27 GMT</pubDate></item></channel></rss>