<?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[Invert X or Y blocks needed.]]></title><description><![CDATA[<p dir="auto">Just testing out UIFlow with the joystick and noticed that when using this code</p>
<pre><code>from m5stack import *
from m5ui import *
import units

clear_bg(0x222222)
joystick0 = units.Joystick(units.PORTA)



btnA = M5Button(name="ButtonA", text="ButtonA", visibility=False)
btnB = M5Button(name="ButtonB", text="ButtonB", visibility=False)
btnC = M5Button(name="ButtonC", text="ButtonC", visibility=False)
circle1 = M5Circle(159, 100, 15, 0xFFFFFF, 0xFFFFFF)


while True:
  circle1.setPosition((joystick0.X), (joystick0.Y))
  wait(0.001)
</code></pre>
<p dir="auto">X axis or Y axis needs inverting to correct direction. (this code is just the micropython code generated by blocky.)</p>
<p dir="auto">Can we get a Inver X and Invert Y blocks added to the Joystick blocks please.</p>
]]></description><link>https://community.m5stack.com/topic/875/invert-x-or-y-blocks-needed</link><generator>RSS for Node</generator><lastBuildDate>Thu, 30 Apr 2026 17:41:02 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/875.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 11 Apr 2019 13:02:49 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Invert X or Y blocks needed. on Fri, 12 Apr 2019 12:15:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/heybin" aria-label="Profile: heybin">@<bdi>heybin</bdi></a> Yes, some simple blocks with a function like that.</p>
]]></description><link>https://community.m5stack.com/post/3704</link><guid isPermaLink="true">https://community.m5stack.com/post/3704</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Fri, 12 Apr 2019 12:15:39 GMT</pubDate></item><item><title><![CDATA[Reply to Invert X or Y blocks needed. on Fri, 12 Apr 2019 12:12:05 GMT]]></title><description><![CDATA[<p dir="auto">sure, like joystick0.InverX and joystick0.InvertY</p>
]]></description><link>https://community.m5stack.com/post/3703</link><guid isPermaLink="true">https://community.m5stack.com/post/3703</guid><dc:creator><![CDATA[heybin]]></dc:creator><pubDate>Fri, 12 Apr 2019 12:12:05 GMT</pubDate></item><item><title><![CDATA[Reply to Invert X or Y blocks needed. on Fri, 12 Apr 2019 10:31:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/heybin" aria-label="Profile: heybin">@<bdi>heybin</bdi></a> 我们可以加一个这样的block吗</p>
]]></description><link>https://community.m5stack.com/post/3684</link><guid isPermaLink="true">https://community.m5stack.com/post/3684</guid><dc:creator><![CDATA[m5-docs]]></dc:creator><pubDate>Fri, 12 Apr 2019 10:31:55 GMT</pubDate></item></channel></rss>