<?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[Core2 UiFlow]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I defined with blockly  a touch button. If the touch button ist pressed first the screen shall become red and then a filled circle shall be drawn on the background. In python the code looks like that:</p>
<p dir="auto">def touch_button0_pressed():<br />
global z_schwelle<br />
screen.set_screen_bg_color(0xff0000)<br />
wait_ms(1)<br />
lcd.circle(160, 120, 30, fillcolor=0xffffff)<br />
wait(2)<br />
pass<br />
touch_button0.pressed(touch_button0_pressed)</p>
<p dir="auto">Strangely, however, when the code is executed, the circle is drawn first and then the screnn is colored, with the circle disappearing. Why is the code executed in the wrong order? How can I prevent this? The wait commands I have inserted have not helped.</p>
<p dir="auto">Best regards,<br />
Torsten</p>
]]></description><link>https://community.m5stack.com/topic/5546/core2-uiflow</link><generator>RSS for Node</generator><lastBuildDate>Tue, 05 May 2026 18:32:44 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/5546.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 04 Aug 2023 18:17:45 GMT</pubDate><ttl>60</ttl></channel></rss>