<?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[QR Code positioning on M5Paper e-ink display]]></title><description><![CDATA[<p dir="auto">Hi everyone</p>
<p dir="auto">I'm having problem with positioning a QR code on my M5Paper e-ink screen.</p>
<p dir="auto">Given this very simple piece of Arduino code:</p>
<pre><code>#include &lt;M5EPD.h&gt;

M5EPD_Canvas canvas(&amp;M5.EPD);
const uint16_t Y = 0;

void setup()
{
    M5.begin(false, false, false, false, false);
    M5.EPD.SetRotation(90);
    M5.EPD.Clear(true);

    canvas.createCanvas(540, 960);
    canvas.qrcode("https://www.example.org/", 70, Y, 400);
    canvas.pushCanvas(0, 0, UPDATE_MODE_GC16);
}

void loop()
{
}
</code></pre>
<p dir="auto">When setting <code>Y</code> to <code>0</code>, the qr code gets placed at the very top of the screen, as expected:</p>
<p dir="auto"><img src="/assets/uploads/files/1633645362491-threema-20211008-002054235-resized.jpg" alt="0_1633645361031_threema-20211008-002054235.jpg" class=" img-fluid img-markdown" /></p>
<p dir="auto">When setting <code>Y</code> to <code>560</code> (screen height 960 - size of qr code 400), I would expect the QR code to render at the very bottom of the screen. However, the qr code gets render barely a bit lower than with <code>Y = 0</code>.</p>
<p dir="auto"><img src="/assets/uploads/files/1633645517003-threema-20211008-002054788-resized.jpg" alt="0_1633645516293_threema-20211008-002054788.jpg" class=" img-fluid img-markdown" /></p>
<p dir="auto">Is there something obvious I'm missing?<br />
Any help would be much appreciated.</p>
]]></description><link>https://community.m5stack.com/topic/3626/qr-code-positioning-on-m5paper-e-ink-display</link><generator>RSS for Node</generator><lastBuildDate>Fri, 15 May 2026 09:04:09 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/3626.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 07 Oct 2021 22:28:50 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to QR Code positioning on M5Paper e-ink display on Fri, 08 Oct 2021 21:22:24 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/skulblaka" aria-label="Profile: Skulblaka">@<bdi>Skulblaka</bdi></a></p>
<p dir="auto">try using the x and y coordinates of the <code>pushCanvas()</code> command instead.</p>
<pre><code>    canvas.qrcode("https://www.example.org/", 0, 0, 400);
    canvas.pushCanvas(70, Y, UPDATE_MODE_GC16);
</code></pre>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/15084</link><guid isPermaLink="true">https://community.m5stack.com/post/15084</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Fri, 08 Oct 2021 21:22:24 GMT</pubDate></item></channel></rss>