<?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[lcd.print disappears with rotate 270 and Y &gt; 104]]></title><description><![CDATA[<p dir="auto">I filed an <a href="https://github.com/m5stack/UIFlow-Code/issues/10" target="_blank" rel="noopener noreferrer nofollow ugc">issue</a>, but also thought I'd post here.</p>
<p dir="auto">I'm trying to print with a colored background, in either horizontal orientation. rotation 90 works fine, but when I go to rotation 270, I hit this issue where the text completely disappears if I try to move it all the way next to the button. I tried using labels, but when I set the background, the label gets overwritten. Maybe I just haven't hit the right combination yet.</p>
]]></description><link>https://community.m5stack.com/topic/1865/lcd-print-disappears-with-rotate-270-and-y-104</link><generator>RSS for Node</generator><lastBuildDate>Sun, 10 May 2026 17:19:20 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/1865.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 19 Apr 2020 18:14:03 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to lcd.print disappears with rotate 270 and Y &gt; 104 on Sun, 26 Apr 2020 05:13:41 GMT]]></title><description><![CDATA[<p dir="auto">I will finally note that lcd.print works fine with lcd.orient(lcd.LANDSCAPE)<br />
and lcd.orient(lcd.LANDSCAPE_FLIP)</p>
]]></description><link>https://community.m5stack.com/post/8370</link><guid isPermaLink="true">https://community.m5stack.com/post/8370</guid><dc:creator><![CDATA[dclaar]]></dc:creator><pubDate>Sun, 26 Apr 2020 05:13:41 GMT</pubDate></item><item><title><![CDATA[Reply to lcd.print disappears with rotate 270 and Y &gt; 104 on Tue, 21 Apr 2020 14:17:13 GMT]]></title><description><![CDATA[<p dir="auto">I see that even with lcd.print, the display still blinks. I thought that having layers meant that the graphics routines were more sophisticated than they are.</p>
]]></description><link>https://community.m5stack.com/post/8291</link><guid isPermaLink="true">https://community.m5stack.com/post/8291</guid><dc:creator><![CDATA[dclaar]]></dc:creator><pubDate>Tue, 21 Apr 2020 14:17:13 GMT</pubDate></item><item><title><![CDATA[Reply to lcd.print disappears with rotate 270 and Y &gt; 104 on Tue, 21 Apr 2020 02:26:13 GMT]]></title><description><![CDATA[<p dir="auto">I tried using a rectangle + label, and it still blinks:</p>
<pre><code>while True:
  rectangle0.setBgColor(0xff0000)
  label0.setColor(0xffffff)
  label0.setText('AQI')
  wait_ms(1000)
</code></pre>
<p dir="auto">So I think only lcd.print will <em>not</em> do the blinking thing. Even though the rectangle is "below" the text, it appears to completely replace the screen rather than honoring the layering.</p>
]]></description><link>https://community.m5stack.com/post/8276</link><guid isPermaLink="true">https://community.m5stack.com/post/8276</guid><dc:creator><![CDATA[dclaar]]></dc:creator><pubDate>Tue, 21 Apr 2020 02:26:13 GMT</pubDate></item><item><title><![CDATA[Reply to lcd.print disappears with rotate 270 and Y &gt; 104 on Mon, 20 Apr 2020 13:43:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dclaar" aria-label="Profile: dclaar">@<bdi>dclaar</bdi></a><br />
The M5stack grey has a built-in gyroscope, the black one hasn't. Use the gyroscope data determining at which angle your text shall be displayed. In Blockly you can define different labels for the different angles and display them accordingly. If you write the program in Blockly/Python you won't be able to save it. In that case I put the Python line into a Blockly exec code calling the exec code with a subroutine. That way your block code can be stored in a *.m5f file.  You can even pass global variables into your exec code (eg the x,y position of your text on the display and the rotation angle.</p>
]]></description><link>https://community.m5stack.com/post/8261</link><guid isPermaLink="true">https://community.m5stack.com/post/8261</guid><dc:creator><![CDATA[crami25]]></dc:creator><pubDate>Mon, 20 Apr 2020 13:43:33 GMT</pubDate></item><item><title><![CDATA[Reply to lcd.print disappears with rotate 270 and Y &gt; 104 on Sun, 19 Apr 2020 23:32:34 GMT]]></title><description><![CDATA[<p dir="auto">Thanks! To be clear, I <em>was</em> trying to do this:</p>
<pre><code>while True:
  lcd.font(lcd.FONT_DejaVu56, rotate=270)
  lcd.print('aqi', 10, 104, 0xffffff)
  wait_ms(1000)
</code></pre>
<p dir="auto">All Y values up to 104 move the text further away from the button, as expected if 0,0 is at the top.<br />
But once the Y parameter is 105 or larger (which is about mid-screen), the text just disappears! This happens in Blockly, too.<br />
That's the gist of my bug, which is why I tried to work around it with the above code.</p>
<p dir="auto">I guess that I could just require the unit be set down in the 90 degree orientation, but I was hoping to be user-friendly and detect which way the unit was sitting and react accordingly.</p>
]]></description><link>https://community.m5stack.com/post/8236</link><guid isPermaLink="true">https://community.m5stack.com/post/8236</guid><dc:creator><![CDATA[dclaar]]></dc:creator><pubDate>Sun, 19 Apr 2020 23:32:34 GMT</pubDate></item><item><title><![CDATA[Reply to lcd.print disappears with rotate 270 and Y &gt; 104 on Sun, 19 Apr 2020 22:27:26 GMT]]></title><description><![CDATA[<p dir="auto">Every time you call SetScreenColor(0xff0000) in your loop the display is completly erased  and then your text is displayed again.  So the annoying flashing is due to your programming style ! If you rotate a label, you  mostly will have to rearrange its position. If you rotate a label at the bottom of the screen simply by changing the rotate value for your text in python to eg. 90 it will fall of the bottom of the screen. If you keep your programming strictly to Blockly, you can see what happens.</p>
]]></description><link>https://community.m5stack.com/post/8234</link><guid isPermaLink="true">https://community.m5stack.com/post/8234</guid><dc:creator><![CDATA[crami25]]></dc:creator><pubDate>Sun, 19 Apr 2020 22:27:26 GMT</pubDate></item><item><title><![CDATA[Reply to lcd.print disappears with rotate 270 and Y &gt; 104 on Sun, 19 Apr 2020 18:19:41 GMT]]></title><description><![CDATA[<p dir="auto">This <em>kind of</em> works, but the screen flashes every time, which is annoying</p>
<pre><code>while True:
  setScreenColor(0xff0000)
  label0.setColor(0x800000)
  label0.setText('Hello M5')
  wait(1)
</code></pre>
]]></description><link>https://community.m5stack.com/post/8231</link><guid isPermaLink="true">https://community.m5stack.com/post/8231</guid><dc:creator><![CDATA[dclaar]]></dc:creator><pubDate>Sun, 19 Apr 2020 18:19:41 GMT</pubDate></item></channel></rss>