<?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[UIFlow 1.5.2]]></title><description><![CDATA[<p dir="auto">Ver 1.5.2. time : 2020.05.09<br />
UpdateLog：</p>
<p dir="auto">web:</p>
<ul>
<li>1: Add Unit ENV2.</li>
<li>2: Add some blocks.</li>
<li>3: Remove v1.2.3.4: Fixed bugs.</li>
</ul>
<p dir="auto">firmware:</p>
<ul>
<li>1: Fixed: button dual press error.</li>
<li>2: Fixed: NCIR, Light unit read error.</li>
<li>3: Fixed: PAHUB support error.</li>
<li>4: Update: GPS unit add speed and course get.</li>
<li>5: Update: Wi-Fi dhcp hostname config to ESP-{apikey}.</li>
<li>6: Add: GPS module support.</li>
<li>7: Add: Modbus support.</li>
<li>8: Add: Modbus Slave support.</li>
<li>9: Add: EEPROM support.</li>
</ul>
<p dir="auto"><img src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/Updates_log/UIFlow1.5.2.png" alt="替代文字" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.m5stack.com/topic/1941/uiflow-1-5-2</link><generator>RSS for Node</generator><lastBuildDate>Thu, 16 Apr 2026 23:25:54 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/1941.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 09 May 2020 12:55:44 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to UIFlow 1.5.2 on Sat, 13 Jun 2020 04:07:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/443">@ajb2k3</a> Take care boss. Slow down and enjoy the earl grey.</p>
<p dir="auto">Also: don't.do.anything.stupid. :D</p>
]]></description><link>https://community.m5stack.com/post/8980</link><guid isPermaLink="true">https://community.m5stack.com/post/8980</guid><dc:creator><![CDATA[jhfoo]]></dc:creator><pubDate>Sat, 13 Jun 2020 04:07:44 GMT</pubDate></item><item><title><![CDATA[Reply to UIFlow 1.5.2 on Wed, 27 May 2020 18:03:45 GMT]]></title><description><![CDATA[<p dir="auto">Sorry, I have been busy and suffering depression which resulted in my book getting neglected.</p>
]]></description><link>https://community.m5stack.com/post/8845</link><guid isPermaLink="true">https://community.m5stack.com/post/8845</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Wed, 27 May 2020 18:03:45 GMT</pubDate></item><item><title><![CDATA[Reply to UIFlow 1.5.2 on Wed, 27 May 2020 13:04:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/1">@m5stack</a><br />
I don't need source code.<br />
I'd like documentation on API usage<br />
E.g. LCD<br />
-Lcd.print(text, posx, posy, size) - prints a text string<br />
Etc.<br />
Im not looking for any source code<br />
Thanks<br />
Here's example from arduino:<br />
<a href="https://www.arduino.cc/en/reference/libraries" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.arduino.cc/en/reference/libraries</a></p>
<p dir="auto">And detailed info on functions:<br />
<a href="https://www.arduino.cc/en/Reference/SD" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.arduino.cc/en/Reference/SD</a></p>
<p dir="auto">No source code there but all functions detailed and explained how to use<br />
Because blockly, Im sorry, is just lame</p>
]]></description><link>https://community.m5stack.com/post/8844</link><guid isPermaLink="true">https://community.m5stack.com/post/8844</guid><dc:creator><![CDATA[Thrasher]]></dc:creator><pubDate>Wed, 27 May 2020 13:04:55 GMT</pubDate></item><item><title><![CDATA[Reply to UIFlow 1.5.2 on Wed, 27 May 2020 06:08:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/1795">@thrasher</a></p>
<p dir="auto">we had open source part UIFlow lib code. in this github :<a href="https://github.com/m5stack/UIFlow-Code" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/m5stack/UIFlow-Code</a></p>
<p dir="auto">Taking into account some lib data security issues, we will not open source all libs for the time being, so you can talk about which libs users want, we will consider if open source these lib.</p>
]]></description><link>https://community.m5stack.com/post/8837</link><guid isPermaLink="true">https://community.m5stack.com/post/8837</guid><dc:creator><![CDATA[m5stack]]></dc:creator><pubDate>Wed, 27 May 2020 06:08:09 GMT</pubDate></item><item><title><![CDATA[Reply to UIFlow 1.5.2 on Tue, 26 May 2020 18:52:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/1">@m5stack</a><br />
Can we have document with something like:<br />
UIFlow lib<br />
--API<br />
--Methods<br />
--Method example / construction<br />
The way Arduino document its built-in libraries or similar to this?<br />
Thank you</p>
]]></description><link>https://community.m5stack.com/post/8833</link><guid isPermaLink="true">https://community.m5stack.com/post/8833</guid><dc:creator><![CDATA[Thrasher]]></dc:creator><pubDate>Tue, 26 May 2020 18:52:17 GMT</pubDate></item><item><title><![CDATA[Reply to UIFlow 1.5.2 on Tue, 26 May 2020 01:58:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/180">@jpilarski</a> You can talk about which lib your users want to open source.</p>
]]></description><link>https://community.m5stack.com/post/8829</link><guid isPermaLink="true">https://community.m5stack.com/post/8829</guid><dc:creator><![CDATA[m5stack]]></dc:creator><pubDate>Tue, 26 May 2020 01:58:35 GMT</pubDate></item><item><title><![CDATA[Reply to UIFlow 1.5.2 on Mon, 25 May 2020 16:27:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/1">@m5stack</a><br />
Very cool. Thanks and it's really great to see bluetooth in micropython and uiflow. At one time you mentioned the micropython firmwares would be open source and made available on github, I know you have a uiflow micropython repo <a href="https://github.com/m5stack/UIFlow-Code" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/m5stack/UIFlow-Code </a> but it doesn't always get updated with new releases, it would be great to see the repo get updated and have branches for each major release. I think so much great development can happen if the code is made available.</p>
]]></description><link>https://community.m5stack.com/post/8824</link><guid isPermaLink="true">https://community.m5stack.com/post/8824</guid><dc:creator><![CDATA[jpilarski]]></dc:creator><pubDate>Mon, 25 May 2020 16:27:34 GMT</pubDate></item><item><title><![CDATA[Reply to UIFlow 1.5.2 on Mon, 25 May 2020 03:02:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/180">@jpilarski</a> ok, the problem is clear.  thank you feedback, we will fix this bug ASAP.</p>
]]></description><link>https://community.m5stack.com/post/8821</link><guid isPermaLink="true">https://community.m5stack.com/post/8821</guid><dc:creator><![CDATA[m5stack]]></dc:creator><pubDate>Mon, 25 May 2020 03:02:15 GMT</pubDate></item><item><title><![CDATA[Reply to UIFlow 1.5.2 on Sat, 23 May 2020 16:05:47 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/2460">@robalstona</a> <a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/1">@m5stack</a> Thanks for that suggestion. I'll try the blocks you developed out on StickC. The new ble blynk blocks work it"s just they require a little tinkering with the micropython code to get them connected. At least that is my experience of using them. I am still very happy to see them included in the latest beta version of uiflow. Also I look forward to seeing a screen_shot showing all the blocks operating together in a single setup because I might be setting them up in a way that introduces the minor issues I've come across.</p>
]]></description><link>https://community.m5stack.com/post/8805</link><guid isPermaLink="true">https://community.m5stack.com/post/8805</guid><dc:creator><![CDATA[jpilarski]]></dc:creator><pubDate>Sat, 23 May 2020 16:05:47 GMT</pubDate></item><item><title><![CDATA[Reply to UIFlow 1.5.2 on Sat, 23 May 2020 12:09:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/180">@jpilarski</a> Some time ago I did custom blocks for blynk.  They use rest api requests for communication, so they are not as advanced as those from uiflow.  maybe these will work for you.  I tested them on m5stickC and works.</p>
<p dir="auto"><a href="https://github.com/stonatm/UiFlow-custom-blocks/blob/master/blynk/README.md" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/stonatm/UiFlow-custom-blocks/blob/master/blynk/README.md</a></p>
]]></description><link>https://community.m5stack.com/post/8800</link><guid isPermaLink="true">https://community.m5stack.com/post/8800</guid><dc:creator><![CDATA[robalstona]]></dc:creator><pubDate>Sat, 23 May 2020 12:09:14 GMT</pubDate></item><item><title><![CDATA[Reply to UIFlow 1.5.2 on Sat, 23 May 2020 04:12:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/1">@m5stack</a><br />
Here is a quick example<br />
<img src="/assets/uploads/files/1590202594116-example-resized.jpg" alt="0_1590202590446_example.jpg" class=" img-fluid img-markdown" /><br />
This code doesn't ever connect to blynk. Here is the code it generates:</p>
<pre><code>from m5stack import *
from m5ui import *
from uiflow import *
from ble import blynk

setScreenColor(0x222222)




label0 = M5TextBox(52, 10, "Text", lcd.FONT_Default,0xFFFFFF, rotate=0)
label1 = M5TextBox(46, 49, "Text", lcd.FONT_Default,0xFFFFFF, rotate=0)
circle0 = M5Circle(141, 122, 15, 0xFFFFFF, 0xFFFFFF)

val = None
message = None



blynk.init('fire', 'xxx', blynk.BLE)
while True:
  circle0.setSize(val)
  wait_ms(2)


@blynk.handle_event('connected')
def blynk_write():
  global val, message
  rgb.setColorAll(0xff0000)

  pass



@blynk.handle_event('write v2')
def blynk_write(*args):
  global val, message
  val, message = args[0], args[1]
  label0.setText(str(val))
  label1.setText(str(message))

  pass
</code></pre>
<p dir="auto">Here is the manually adjusted code that connects with blynk.</p>
<pre><code>from m5stack import *
from m5ui import *
from uiflow import *
from ble import blynk
blynk.init('fire', 'xxx', blynk.BLE)
setScreenColor(0x222222)


label0 = M5TextBox(52, 10, "Text", lcd.FONT_Default,0xFFFFFF, rotate=0)
label1 = M5TextBox(46, 49, "Text", lcd.FONT_Default,0xFFFFFF, rotate=0)
circle0 = M5Circle(141, 122, 15, 0xFFFFFF, 0xFFFFFF)

val = None
message = None



@blynk.handle_event('connected')
def blynk_write():
  global val, message
  rgb.setColorAll(0xff0000)

  pass



@blynk.handle_event('write v2')
def blynk_write(*args):
  global val, message
  val, message = args[0], args[1]
  label0.setText(str(val))
  label1.setText(str(message))

  pass

while True:
  circle0.setSize(val)
  wait_ms(2)

</code></pre>
<p dir="auto">In the example above when the message variable is shown using label1.setText(str(message)) it shows the following ['255']. What is the most effective way in micropython to remove the [] and ' ' and convert message variable to an integer. I am using<br />
<img src="/assets/uploads/files/1590207034180-string-resized.jpg" alt="0_1590207030615_string.jpg" class=" img-fluid img-markdown" /><br />
which outputs this</p>
<pre><code>@blynk.handle_event('write v2')
def blynk_write(*args):
  global val, message
  val, message = args[0], args[1]
  message = str(message.replace("'", '').replace(']', '').replace('[', ''))
  label0.setText(str(val))
  label1.setText(str(message))
  circle0.setSize(int(message))

  pass
</code></pre>
<p dir="auto">but should generate this</p>
<pre><code>@blynk.handle_event('write v2')
def blynk_write(*args):
  global val, message
  val, message = args[0], args[1]
  message = str(message).replace("'", '').replace(']', '').replace('[', '')
  label0.setText(str(val))
  label1.setText(str(message))
  circle0.setSize(int(message))

  pass</code></pre>
]]></description><link>https://community.m5stack.com/post/8796</link><guid isPermaLink="true">https://community.m5stack.com/post/8796</guid><dc:creator><![CDATA[jpilarski]]></dc:creator><pubDate>Sat, 23 May 2020 04:12:33 GMT</pubDate></item><item><title><![CDATA[Reply to UIFlow 1.5.2 on Fri, 22 May 2020 01:25:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/180">@jpilarski</a> could share you program ?   I have test it. event i add a loop block. the blynk init seem still in the correct position.  so if you could take a screenshot show me the program, it will very helpful for us to solve this problem.</p>
]]></description><link>https://community.m5stack.com/post/8774</link><guid isPermaLink="true">https://community.m5stack.com/post/8774</guid><dc:creator><![CDATA[m5stack]]></dc:creator><pubDate>Fri, 22 May 2020 01:25:13 GMT</pubDate></item><item><title><![CDATA[Reply to UIFlow 1.5.2 on Thu, 21 May 2020 20:23:30 GMT]]></title><description><![CDATA[<p dir="auto">The problem I am having looks to be whenever I add certain blocks, for example the loop block, it changes the position of the blynk.init() code and puts it several lines lower in the python code and thus out of order. Even when the blynk.init() was previously working, as soon as I add certain blocks, it puts the blynk.init() several lines lower in the code and this is preventing blynk from working and requires the user the manually cut and paste the blynk.init() line to put it in the correct position. Maybe I'm wrong about how I am using the the blynk blocks. It would be great to see a few screen shots showing how other users are implementing the blocks. thanks</p>
]]></description><link>https://community.m5stack.com/post/8766</link><guid isPermaLink="true">https://community.m5stack.com/post/8766</guid><dc:creator><![CDATA[jpilarski]]></dc:creator><pubDate>Thu, 21 May 2020 20:23:30 GMT</pubDate></item><item><title><![CDATA[Reply to UIFlow 1.5.2 on Thu, 21 May 2020 08:21:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/180">@jpilarski</a> first add blynk init is necessary.   if you use block program.  you should put the blynk.init block to the setup. before use other blynk block.</p>
]]></description><link>https://community.m5stack.com/post/8758</link><guid isPermaLink="true">https://community.m5stack.com/post/8758</guid><dc:creator><![CDATA[m5stack]]></dc:creator><pubDate>Thu, 21 May 2020 08:21:07 GMT</pubDate></item><item><title><![CDATA[Reply to UIFlow 1.5.2 on Thu, 21 May 2020 07:38:32 GMT]]></title><description><![CDATA[<p dir="auto">Very thankful for you all getting ble added to m5stack micropython. However I did notice a bug; it looks like<br />
blynk.init('fire', 'xxxxxxxxxxxxxxxxxxxxxx', blynk.BLE) needs to be added in prior to any of the other blynk related functions but it is often being added in after the other functions and this causes the board to become idle and while it doesn't throw any errors, it also doesn't successfully run the code as intended. I am sure this is a pretty easy fix. For now it looks like the workaround is to copy and paste the autogenerated python blynk related code into the correct order.</p>
]]></description><link>https://community.m5stack.com/post/8756</link><guid isPermaLink="true">https://community.m5stack.com/post/8756</guid><dc:creator><![CDATA[jpilarski]]></dc:creator><pubDate>Thu, 21 May 2020 07:38:32 GMT</pubDate></item><item><title><![CDATA[Reply to UIFlow 1.5.2 on Mon, 18 May 2020 20:16:41 GMT]]></title><description><![CDATA[<p dir="auto">Is it possible to know more about the ncir unit correction? What was wrong before? Asking because I am using a costume micropython version and want to know if I have to change something in my code.<br />
Thanks!</p>
]]></description><link>https://community.m5stack.com/post/8720</link><guid isPermaLink="true">https://community.m5stack.com/post/8720</guid><dc:creator><![CDATA[tialm]]></dc:creator><pubDate>Mon, 18 May 2020 20:16:41 GMT</pubDate></item><item><title><![CDATA[Reply to UIFlow 1.5.2 on Mon, 18 May 2020 09:14:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/2379">@efried</a> thank you feedback , we will fIx this bug as soon as possible</p>
]]></description><link>https://community.m5stack.com/post/8715</link><guid isPermaLink="true">https://community.m5stack.com/post/8715</guid><dc:creator><![CDATA[m5stack]]></dc:creator><pubDate>Mon, 18 May 2020 09:14:10 GMT</pubDate></item><item><title><![CDATA[Reply to UIFlow 1.5.2 on Fri, 15 May 2020 15:34:52 GMT]]></title><description><![CDATA[<p dir="auto">It does no see the emoji library...</p>
]]></description><link>https://community.m5stack.com/post/8702</link><guid isPermaLink="true">https://community.m5stack.com/post/8702</guid><dc:creator><![CDATA[Efried]]></dc:creator><pubDate>Fri, 15 May 2020 15:34:52 GMT</pubDate></item><item><title><![CDATA[Reply to UIFlow 1.5.2 on Mon, 11 May 2020 02:20:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/2747">@hugo</a> could you provide whole program screenshot?</p>
]]></description><link>https://community.m5stack.com/post/8623</link><guid isPermaLink="true">https://community.m5stack.com/post/8623</guid><dc:creator><![CDATA[m5stack]]></dc:creator><pubDate>Mon, 11 May 2020 02:20:30 GMT</pubDate></item><item><title><![CDATA[Reply to UIFlow 1.5.2 on Sun, 10 May 2020 14:24:14 GMT]]></title><description><![CDATA[<p dir="auto">IR unit not supported</p>
]]></description><link>https://community.m5stack.com/post/8617</link><guid isPermaLink="true">https://community.m5stack.com/post/8617</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Sun, 10 May 2020 14:24:14 GMT</pubDate></item><item><title><![CDATA[Reply to UIFlow 1.5.2 on Sun, 10 May 2020 12:37:22 GMT]]></title><description><![CDATA[<p dir="auto">Works only first publish command. Why?<br />
<img src="/assets/uploads/files/1589112492275-33a23857-2320-478c-b2cd-c3f040579572-image.png" alt="0_1589112489881_33a23857-2320-478c-b2cd-c3f040579572-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">edit: sometimes first two. I have to change order for publish third configuration topic</p>
]]></description><link>https://community.m5stack.com/post/8611</link><guid isPermaLink="true">https://community.m5stack.com/post/8611</guid><dc:creator><![CDATA[Hugo]]></dc:creator><pubDate>Sun, 10 May 2020 12:37:22 GMT</pubDate></item><item><title><![CDATA[Reply to UIFlow 1.5.2 on Sat, 09 May 2020 22:28:31 GMT]]></title><description><![CDATA[<p dir="auto">7: Add: Modbus support.<br />
Yeeha prayers answered, will be testing tomorrow!</p>
]]></description><link>https://community.m5stack.com/post/8605</link><guid isPermaLink="true">https://community.m5stack.com/post/8605</guid><dc:creator><![CDATA[Thrasher]]></dc:creator><pubDate>Sat, 09 May 2020 22:28:31 GMT</pubDate></item><item><title><![CDATA[Reply to UIFlow 1.5.2 on Sat, 09 May 2020 20:42:15 GMT]]></title><description><![CDATA[<p dir="auto">Stick with 1.4.5 branch until they get the bugs fixed as the 1.5 branch is for bug testers.<br />
They are trying to go with the main stream MP so its going to take time to fix everything back inline with the 1.4 branch that they previously used.</p>
]]></description><link>https://community.m5stack.com/post/8601</link><guid isPermaLink="true">https://community.m5stack.com/post/8601</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Sat, 09 May 2020 20:42:15 GMT</pubDate></item><item><title><![CDATA[Reply to UIFlow 1.5.2 on Sat, 09 May 2020 19:55:57 GMT]]></title><description><![CDATA[<p dir="auto"><img src="/assets/uploads/files/1589054150979-641be756-bc83-4aff-8c99-20c34bf31c3f-image-resized.png" alt="0_1589054149432_641be756-bc83-4aff-8c99-20c34bf31c3f-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.m5stack.com/post/8600</link><guid isPermaLink="true">https://community.m5stack.com/post/8600</guid><dc:creator><![CDATA[Hugo]]></dc:creator><pubDate>Sat, 09 May 2020 19:55:57 GMT</pubDate></item></channel></rss>