<?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[Blynk on M5Stack via uiFlow and block-maker]]></title><description><![CDATA[<p dir="auto">I've been playing around with <a href="http://block-maker.m5stack.com" target="_blank" rel="noopener noreferrer nofollow ugc">block-maker.m5stack.com</a> quite a bit the past few days. I managed to integrate the Blynk python library and a few of the examples from the Blynk github repo.</p>
<p dir="auto">Here is how I did it.  I'm on a Mac, so sorry I don't have the equivalent instructions for a PC.</p>
<ul>
<li>
<p dir="auto">First you need to get the BlynkLib library on the M5Stack.  Clone the repo to your computer (or just download the <a href="http://BlynkLib.py" target="_blank" rel="noopener noreferrer nofollow ugc">BlynkLib.py</a> file from <a href="http://github.com" target="_blank" rel="noopener noreferrer nofollow ugc">github.com</a>)<br />
<code>git clone https://github.com/vshymanskyy/blynk-library-python.git</code></p>
</li>
<li>
<p dir="auto">You will also need ampy or another file transfer utility to copy <a href="http://BlynkLib.py" target="_blank" rel="noopener noreferrer nofollow ugc">BlynkLib.py</a> to the M5Stack. Follow the instructions in this video.<br />
<a href="https://www.youtube.com/watch?v=rvP3GixWG1Y" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.youtube.com/watch?v=rvP3GixWG1Y</a></p>
</li>
<li>
<p dir="auto">Copy <a href="http://BlynkLib.py" target="_blank" rel="noopener noreferrer nofollow ugc">BlynkLib.py</a> to the M5Stack and put it into the /flash/lib directory so it can be imported as a MicroPython module<br />
<code>cd blynk-library-python</code><br />
<code>ampy -p /dev/tty.SLAB_USBtoUART -b 115200 put BlynkLib.py /flash/lib/BlynkLib.py</code><br />
<strong>Note:</strong> if you use a local Blynk server like I do, you can edit line 216 of <a href="http://BlynkLib.py" target="_blank" rel="noopener noreferrer nofollow ugc">BlynkLib.py</a> and change it to your local server IP and port. Don't forget to put the updated file on your m5stack with ampy. This is the line to edit:<br />
<code>self.conn.connect(socket.getaddrinfo("blynk-cloud.com", 80)[0][4])</code></p>
</li>
<li>
<p dir="auto">Using your browser, go to <a href="http://flow.m5stack.com" target="_blank" rel="noopener noreferrer nofollow ugc">flow.m5stack.com</a>. Open <a href="https://www.dropbox.com/s/xosetw0qzin722l/Blynk.m5b?dl=0" target="_blank" rel="noopener noreferrer nofollow ugc">this</a> *.m5b file that I made with <a href="http://block-maker.m5stack.com" target="_blank" rel="noopener noreferrer nofollow ugc">block-maker.m5stack.com</a>. It has the custom blocks that I created for Blynk.<br />
<img src="/assets/uploads/files/1549165836630-m5b-resized.png" alt="0_1549165831483_m5b.png" class=" img-fluid img-markdown" /></p>
</li>
<li>
<p dir="auto">Open <a href="https://www.dropbox.com/s/i778bmb99fki9mf/Blynk.m5f?dl=0" target="_blank" rel="noopener noreferrer nofollow ugc">this</a> Blynk flow by using the Open option in the upper right menu.<br />
<img src="/assets/uploads/files/1549165883041-open.png" alt="0_1549165880925_open.png" class=" img-fluid img-markdown" /></p>
</li>
</ul>
<p dir="auto"><img src="/assets/uploads/files/1549166323379-screen-shot-2019-02-02-at-10.57.33-pm-resized.png" alt="0_1549166312758_Screen Shot 2019-02-02 at 10.57.33 PM.png" class=" img-fluid img-markdown" /></p>
<ul>
<li>Load the <a href="https://www.dropbox.com/s/x74ivhuxje5ecvd/Blynk_m5.jpg?dl=0" target="_blank" rel="noopener noreferrer nofollow ugc">image</a> Blynk_m5.jpg into the Resource Manager (upper right menu of uiFlow)<br />
<img src="/assets/uploads/files/1549166497577-res-resized.png" alt="0_1549166495019_res.png" class=" img-fluid img-markdown" /><br />
<strong>Note:</strong> you may need to reload the image on the UI<br />
<img src="/assets/uploads/files/1549166444401-reload-resized.png" alt="0_1549166437652_reload.png" class=" img-fluid img-markdown" /></li>
</ul>
<p dir="auto">Now it should look like this:<br />
<img src="/assets/uploads/files/1549165899792-blynk_flow-resized.png" alt="0_1549165895462_blynk_flow.png" class=" img-fluid img-markdown" /></p>
<ul>
<li>
<p dir="auto">Open the Blynk app on your iOS or Android mobile device.  Create a new project and give it a name (I called my project MicroPython). Obtain the auth token from the nut icon in the upper right corner.</p>
</li>
<li>
<p dir="auto">Drag 4 widgets into the project view</p>
</li>
</ul>
<ol>
<li>Value Display: set title to "Uptime (sec)", set pin to V0, and set Refresh Interval to 1 sec</li>
<li>Horizontal or Vertical Slider: set pin to V1 and Decimals to #</li>
<li>Button: set title "Push Notification", set pin to V2, set ON label to Sent and set OFF label to Send</li>
<li>Notification: no settings necessary<br />
<img src="/assets/uploads/files/1549166067306-widgets.png" alt="0_1549166060718_widgets.PNG" class=" img-fluid img-markdown" /></li>
</ol>
<ul>
<li>
<p dir="auto">Press the Run icon (triangle in upper right corner of the Blynk app)<br />
<img src="/assets/uploads/files/1549166078530-run.png" alt="0_1549166074839_run.PNG" class=" img-fluid img-markdown" /></p>
</li>
<li>
<p dir="auto">Back on your browser, paste your auth token into the flow under the Blynk init block</p>
</li>
<li>
<p dir="auto">Press the Run icon (triangle in upper right corner of the uiFlow page) and wait for the Blynk app to connect to the M5Stack. Optionally, you can Download the flow to your m5stack using the Download option in the upper right menu.</p>
</li>
</ul>
<p dir="auto">Demo Use Cases:</p>
<ol>
<li>
<p dir="auto">M5Stack uptime (in seconds) will be shown on the Blynk app and on the M5Stack LCD</p>
</li>
<li>
<p dir="auto">Change the Slider and the value will be updated on the M5Stack LCD</p>
</li>
<li>
<p dir="auto">Tap the Push Notification button and it should send a push notification to the Blynk app on your device with the text shown in the flow.<br />
<img src="/assets/uploads/files/1549166697134-img_0028.png" alt="0_1549166691733_IMG_0028.PNG" class=" img-fluid img-markdown" /></p>
</li>
</ol>
<p dir="auto">Happy Blynking with your M5Stack! :-)</p>
]]></description><link>https://community.m5stack.com/topic/575/blynk-on-m5stack-via-uiflow-and-block-maker</link><generator>RSS for Node</generator><lastBuildDate>Sun, 15 Mar 2026 17:30:19 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/575.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 03 Feb 2019 04:05:28 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Blynk on M5Stack via uiFlow and block-maker on Sun, 19 Apr 2020 09:05:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/3133">@akshaypatil</a></p>
<p dir="auto">Here are the blocks for uiflow,<br />
<a href="http://s000.tinyupload.com/index.php?file_id=08084396321658982238" target="_blank" rel="noopener noreferrer nofollow ugc">http://s000.tinyupload.com/index.php?file_id=08084396321658982238</a></p>
<p dir="auto">and don't forget to use it together with the one uploaded by <a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/187">@world101</a> (<a href="https://www.dropbox.com/s/xosetw0qzin722l/Blynk.m5b?dl=0" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.dropbox.com/s/xosetw0qzin722l/Blynk.m5b?dl=0</a>)</p>
<p dir="auto">Cheers! :)</p>
]]></description><link>https://community.m5stack.com/post/8221</link><guid isPermaLink="true">https://community.m5stack.com/post/8221</guid><dc:creator><![CDATA[akshaypatil]]></dc:creator><pubDate>Sun, 19 Apr 2020 09:05:35 GMT</pubDate></item><item><title><![CDATA[Reply to Blynk on M5Stack via uiFlow and block-maker on Sat, 18 Apr 2020 22:20:37 GMT]]></title><description><![CDATA[<p dir="auto">Done! :D</p>
<pre><code class="language-from">from m5ui import *
from uiflow import *
from easyIO import *

setScreenColor(0x111111)

circle0 = M5Circle(40, 40, 25, 0xffffff, 0xffffff)


import BlynkLib
BLYNK_AUTH = 'Your Authentication KEY '
blynk = BlynkLib.Blynk(BLYNK_AUTH)

      
@blynk.VIRTUAL_WRITE(4) # Button Widget on V4
def my_write_handler(value):
  toggleIO(26)
  

while True:
  blynk.run()
  wait_ms(2)</code></pre>
]]></description><link>https://community.m5stack.com/post/8219</link><guid isPermaLink="true">https://community.m5stack.com/post/8219</guid><dc:creator><![CDATA[akshaypatil]]></dc:creator><pubDate>Sat, 18 Apr 2020 22:20:37 GMT</pubDate></item><item><title><![CDATA[Reply to Blynk on M5Stack via uiFlow and block-maker on Fri, 17 Apr 2020 09:31:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/187">@world101</a> Sure will!</p>
<p dir="auto"><img src="/assets/uploads/files/1587112376975-8d4fd9f2-8ad2-4cb8-9577-97318370cf43-image-resized.png" alt="0_1587112370233_8d4fd9f2-8ad2-4cb8-9577-97318370cf43-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">I was thinking if it was possible to insert the received virtual value from Blynk button here (orange block), one could toggle the GPIO pin.</p>
<p dir="auto">P.S. The push notifications work perfectly! Didn't add the notification widget. (silly me!)</p>
<p dir="auto">Now I just need to figure out to toggle GPIO through virtual values from the button.</p>
]]></description><link>https://community.m5stack.com/post/8188</link><guid isPermaLink="true">https://community.m5stack.com/post/8188</guid><dc:creator><![CDATA[akshaypatil]]></dc:creator><pubDate>Fri, 17 Apr 2020 09:31:19 GMT</pubDate></item><item><title><![CDATA[Reply to Blynk on M5Stack via uiFlow and block-maker on Fri, 17 Apr 2020 03:03:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/3133">@akshaypatil</a></p>
<p dir="auto">I haven’t worked with Blynk in a while, so I can’t comment on gpio control. If you end up getting something working, please share it.</p>
<p dir="auto">I’ll see if I can find time to test push notifications on the m5stickC.</p>
]]></description><link>https://community.m5stack.com/post/8184</link><guid isPermaLink="true">https://community.m5stack.com/post/8184</guid><dc:creator><![CDATA[world101]]></dc:creator><pubDate>Fri, 17 Apr 2020 03:03:12 GMT</pubDate></item><item><title><![CDATA[Reply to Blynk on M5Stack via uiFlow and block-maker on Wed, 15 Apr 2020 20:25:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/3133">@akshaypatil</a> said in <a href="/post/8160">Blynk on M5Stack via uiFlow and block-maker</a>:</p>
<blockquote>
<p dir="auto">Hi! I'm a complete beginner learning to use stickC, I managed to figure out Blynk with Arduino, but now, I'd like to do it with uiflow.<br />
Since I have the latest versions of both (<a href="http://blynk.py" target="_blank" rel="noopener noreferrer nofollow ugc">blynk.py</a> - 0.2.6 &amp; uiflow - 1.4.5.1), I wanted to know if the procedure is still the same. Also, if there are other reference links/good material to learn about esp32 with python, then do share!<br />
I'm an industrial design student trying to make a battery-powered heated lunchbox for my thesis, which I'd like to control with the phone and also show nice graphics using stickC.<br />
Any help appreciated!<br />
Thank you :)</p>
</blockquote>
<p dir="auto">Alright!<br />
I figured how to upload and run the BlynkLib 0.2.0 on uiflow - 1.4.5. :D<br />
The device is successfully detected and shown running on the android app.<br />
Now, I only need to figure how to control/toggle GPIO pins through uiflow with Blynk. :)</p>
<p dir="auto">Any tips? :P</p>
<p dir="auto">P.S.<br />
The push notification is not working. Is this limited to M5Stack only? Or also possible on my device...</p>
<p dir="auto"><img src="/assets/uploads/files/1586982302991-b86f4476-65ee-4135-bce2-b761c18b4e98-image-resized.png" alt="0_1586982302153_b86f4476-65ee-4135-bce2-b761c18b4e98-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.m5stack.com/post/8168</link><guid isPermaLink="true">https://community.m5stack.com/post/8168</guid><dc:creator><![CDATA[akshaypatil]]></dc:creator><pubDate>Wed, 15 Apr 2020 20:25:46 GMT</pubDate></item><item><title><![CDATA[Reply to Blynk on M5Stack via uiFlow and block-maker on Tue, 14 Apr 2020 22:31:57 GMT]]></title><description><![CDATA[<p dir="auto">Hi! I'm a complete beginner learning to use stickC, I managed to figure out Blynk with Arduino, but now, I'd like to do it with uiflow.<br />
Since I have the latest versions of both (<a href="http://blynk.py" target="_blank" rel="noopener noreferrer nofollow ugc">blynk.py</a> - 0.2.6 &amp; uiflow - 1.4.5.1), I wanted to know if the procedure is still the same. Also, if there are other reference links/good material to learn about esp32 with python, then do share!<br />
I'm an industrial design student trying to make a battery-powered heated lunchbox for my thesis, which I'd like to control with the phone and also show nice graphics using stickC.<br />
Any help appreciated!<br />
Thank you :)</p>
]]></description><link>https://community.m5stack.com/post/8160</link><guid isPermaLink="true">https://community.m5stack.com/post/8160</guid><dc:creator><![CDATA[akshaypatil]]></dc:creator><pubDate>Tue, 14 Apr 2020 22:31:57 GMT</pubDate></item><item><title><![CDATA[Reply to Blynk on M5Stack via uiFlow and block-maker on Sun, 24 Feb 2019 22:06:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/187">@world101</a> Got everything working using UiFlow V1.2!</p>
]]></description><link>https://community.m5stack.com/post/3139</link><guid isPermaLink="true">https://community.m5stack.com/post/3139</guid><dc:creator><![CDATA[kmo]]></dc:creator><pubDate>Sun, 24 Feb 2019 22:06:56 GMT</pubDate></item><item><title><![CDATA[Reply to Blynk on M5Stack via uiFlow and block-maker on Tue, 19 Feb 2019 11:50:46 GMT]]></title><description><![CDATA[<p dir="auto">That’s the one I followed and still not auto loading. Will have another go tonight</p>
]]></description><link>https://community.m5stack.com/post/3075</link><guid isPermaLink="true">https://community.m5stack.com/post/3075</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Tue, 19 Feb 2019 11:50:46 GMT</pubDate></item><item><title><![CDATA[Reply to Blynk on M5Stack via uiFlow and block-maker on Tue, 19 Feb 2019 11:44:09 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></p>
<p dir="auto">Try the following:</p>
<p dir="auto">edit the crontab</p>
<p dir="auto">pi@raspberrypi:~ $ crontab -e<br />
no crontab for pi - using an empty one</p>
<p dir="auto">Select an editor.  To change later, run 'select-editor'.</p>
<ol>
<li>/bin/ed</li>
<li>/bin/nano        &lt;---- easiest</li>
<li>/usr/bin/vim.tiny</li>
</ol>
<p dir="auto">Choose 1-3 [2]: 2<br />
Go to the end of the file and add the following command. Do not forget to modify the path to match your installation directory.</p>
<p dir="auto">@reboot java -jar /home/pi/server-0.23.0.jar -dataFolder /home/pi/Blynk &amp;</p>
<p dir="auto">Source:  <a href="https://diyprojects.io/blynk-how-to-install-a-private-local-server-on-raspberry-pi-3-unlimited-energy-test-wemos-dht22/#.XGvrGqROmEc" target="_blank" rel="noopener noreferrer nofollow ugc">https://diyprojects.io/blynk-how-to-install-a-private-local-server-on-raspberry-pi-3-unlimited-energy-test-wemos-dht22/#.XGvrGqROmEc</a></p>
]]></description><link>https://community.m5stack.com/post/3074</link><guid isPermaLink="true">https://community.m5stack.com/post/3074</guid><dc:creator><![CDATA[world101]]></dc:creator><pubDate>Tue, 19 Feb 2019 11:44:09 GMT</pubDate></item><item><title><![CDATA[Reply to Blynk on M5Stack via uiFlow and block-maker on Tue, 19 Feb 2019 05:43:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/187">@world101</a> RPI 2B</p>
]]></description><link>https://community.m5stack.com/post/3072</link><guid isPermaLink="true">https://community.m5stack.com/post/3072</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Tue, 19 Feb 2019 05:43:58 GMT</pubDate></item><item><title><![CDATA[Reply to Blynk on M5Stack via uiFlow and block-maker on Tue, 19 Feb 2019 00:29:43 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> said in <a href="/post/3064">Blynk on M5Stack via uiFlow and block-maker</a>:</p>
<blockquote>
<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/187">@world101</a> I managed to build a private server on Saturday but having auto startup issues.<br />
I’ve tried the guide but still have to manually start the server</p>
</blockquote>
<p dir="auto">What platform did you build the local server on (Linux, RPi, etc)?</p>
]]></description><link>https://community.m5stack.com/post/3067</link><guid isPermaLink="true">https://community.m5stack.com/post/3067</guid><dc:creator><![CDATA[world101]]></dc:creator><pubDate>Tue, 19 Feb 2019 00:29:43 GMT</pubDate></item><item><title><![CDATA[Reply to Blynk on M5Stack via uiFlow and block-maker on Mon, 18 Feb 2019 16:06:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/187">@world101</a> I managed to build a private server on Saturday but having auto startup issues.<br />
I’ve tried the guide but still have to manually start the server</p>
]]></description><link>https://community.m5stack.com/post/3064</link><guid isPermaLink="true">https://community.m5stack.com/post/3064</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Mon, 18 Feb 2019 16:06:48 GMT</pubDate></item><item><title><![CDATA[Reply to Blynk on M5Stack via uiFlow and block-maker on Mon, 18 Feb 2019 15:45:25 GMT]]></title><description><![CDATA[<p dir="auto">I just noticed the Blynk developers released a new version 0.2.0 of blynk-library-python on git hub. I seems to have some additional advanced features like</p>
<ul>
<li>debug logging</li>
<li>custom server</li>
<li>changing heartbeat</li>
<li>connected/disconnected events</li>
<li>generic virtual pin events</li>
<li>BlynkTimer</li>
</ul>
<p dir="auto">I have not tried this out yet, but plan to in the next week or so.  In case you wanted to try the older version of the library, here is the commit:<br />
<a href="https://github.com/vshymanskyy/blynk-library-python/commit/4cbf641fade72a11e797436a8656ebf28f239801" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/vshymanskyy/blynk-library-python/commit/4cbf641fade72a11e797436a8656ebf28f239801</a></p>
]]></description><link>https://community.m5stack.com/post/3063</link><guid isPermaLink="true">https://community.m5stack.com/post/3063</guid><dc:creator><![CDATA[world101]]></dc:creator><pubDate>Mon, 18 Feb 2019 15:45:25 GMT</pubDate></item><item><title><![CDATA[Reply to Blynk on M5Stack via uiFlow and block-maker on Tue, 12 Feb 2019 18:10:51 GMT]]></title><description><![CDATA[<p dir="auto">Very cool! Can't wait to try it out!</p>
]]></description><link>https://community.m5stack.com/post/2926</link><guid isPermaLink="true">https://community.m5stack.com/post/2926</guid><dc:creator><![CDATA[kmo]]></dc:creator><pubDate>Tue, 12 Feb 2019 18:10:51 GMT</pubDate></item><item><title><![CDATA[Reply to Blynk on M5Stack via uiFlow and block-maker on Tue, 05 Feb 2019 19:51:34 GMT]]></title><description><![CDATA[<p dir="auto">Can you pm me your real name as I would like to credit you in my book for all the hard work on M5Blynk</p>
]]></description><link>https://community.m5stack.com/post/2877</link><guid isPermaLink="true">https://community.m5stack.com/post/2877</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Tue, 05 Feb 2019 19:51:34 GMT</pubDate></item><item><title><![CDATA[Reply to Blynk on M5Stack via uiFlow and block-maker on Tue, 05 Feb 2019 19:46:45 GMT]]></title><description><![CDATA[<p dir="auto">By the way, I haven't found a way to import existing m5b files into <a href="http://block-maker.m5stack.com" target="_blank" rel="noopener noreferrer nofollow ugc">block-maker.m5stack.com</a>, so here are the ones I created.  Feel free to play around with them and even create some new ones!  The official Blynk colors are here:  <a href="http://docs.blynk.cc/#blynk-main-operations-change-widget-properties" target="_blank" rel="noopener noreferrer nofollow ugc">http://docs.blynk.cc/#blynk-main-operations-change-widget-properties</a></p>
<p dir="auto"><strong>Blynk Init:</strong><br />
<img src="/assets/uploads/files/1549395446487-blynk_init-resized.png" alt="0_1549395441904_blynk_init.png" class=" img-fluid img-markdown" /></p>
<pre><code>import BlynkLib
BLYNK_AUTH = ${auth_token}
blynk = BlynkLib.Blynk(BLYNK_AUTH)
</code></pre>
<p dir="auto"><strong>Blynk Run:</strong><br />
<img src="/assets/uploads/files/1549395476688-blynk_run-resized.png" alt="0_1549395472566_blynk_run.png" class=" img-fluid img-markdown" /></p>
<pre><code>blynk.run()
</code></pre>
<p dir="auto"><strong>Uptime:</strong><br />
<img src="/assets/uploads/files/1549395490703-uptime-resized.png" alt="0_1549395486257_uptime.png" class=" img-fluid img-markdown" /></p>
<pre><code>@blynk.VIRTUAL_READ(${pin})
def v${pin}_read_handler():
    time_val = time.ticks_ms() // 1000
    blynk.virtual_write(${pin}, time_val)
    lcd.textClear(${x}, ${y}, '      ', lcd.${bg_color})
    lcd.print(time_val, ${x}, ${y}, lcd.${fg_color})
</code></pre>
<p dir="auto"><strong>Slider:  <em>(Note, this is slightly different than the tutorial above.  I was experimenting with passing a variable into the block. Feel free to adjust it as needed)</em></strong><br />
<img src="/assets/uploads/files/1549395511531-slider-resized.png" alt="0_1549395507104_slider.png" class=" img-fluid img-markdown" /></p>
<pre><code>@blynk.VIRTUAL_WRITE(${pin})
def v${pin}_write_handler(value):
    lcd.textClear(${x}, ${y}, '    ', lcd.${bg_color})
    ${variable} = '{}'.format(value).strip("['']")
    lcd.print(${variable}, ${x}, ${y}, lcd.${fg_color}, transparent=True, fixedwidth=True)
</code></pre>
<p dir="auto"><strong>Push Notification:</strong><br />
<img src="/assets/uploads/files/1549395569079-push_notification-resized.png" alt="0_1549395564695_push_notification.png" class=" img-fluid img-markdown" /></p>
<pre><code>@blynk.VIRTUAL_WRITE(${pin})
def v${pin}_write_handler(value):
    if value:
        blynk.notify(${text})
</code></pre>
<p dir="auto">I'm really interested in how to link blocks together, like the m5stack team did for the MQTT blocks.  But I'll start a new thread on that soon.</p>
]]></description><link>https://community.m5stack.com/post/2876</link><guid isPermaLink="true">https://community.m5stack.com/post/2876</guid><dc:creator><![CDATA[world101]]></dc:creator><pubDate>Tue, 05 Feb 2019 19:46:45 GMT</pubDate></item><item><title><![CDATA[Reply to Blynk on M5Stack via uiFlow and block-maker on Tue, 05 Feb 2019 19:33:09 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>, <a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/423">@LastCaress</a></p>
<p dir="auto">Glad you all got it working.  To access REPL, you can do this from the Mac Terminal with the M5Stack connected to a USB port.</p>
<p dir="auto"><code>screen /dev/tty.SLAB_USBtoUART 115200</code></p>
<p dir="auto">You may not see anything at first, so you can press CTRL+C on the keyboard to drop you into the REPL prompt (&gt;&gt;&gt;).  From there, you can do your regular MicroPython commands. For example...</p>
<pre><code>&gt;&gt;&gt; os.listdir()
['image_app', 'main.py', 'emoji', 'sys_lib', 'config.py', 'lib', 'res', 'flow.py', 'blocks', 'apps', 'debug.py', 'modeconfig.json', 'boot.py', 'img']
&gt;&gt;&gt; os.listdir('lib')
['servo.py', 'square.py', 'step_motor.py', 'm5_pin.py', 'm5bala.py', 'wave.mpy', 'lego_board.py', 'bmp280.mpy', 'dht12.mpy', 'mpu6050.py', 'chunk.mpy', 'pid.py', 'lego.py', 'BlynkLib.py']
&gt;&gt;&gt; import BlynkLib

    ___  __          __
   / _ )/ /_ _____  / /__
  / _  / / // / _ \/  '_/
 /____/_/\_, /_//_/_/\_\
        /___/ for Python v0.2.0

&gt;&gt;&gt; help()
Welcome to LoBo MicroPython for the ESP32

For online documentation please visit the Wiki pages:
https://github.com/loboris/MicroPython_ESP32_psRAM_LoBo/wiki

Based on official MicroPython, this port brings many new features:

 - support for two cores and 4MB SPIRAM (psRAM)
 - improved 'network' module
 - greatly improved thread support
 - support for 3 different internal file systems on top of ESP32 VFS
 - ESP32 native support for SD Card
 - built-in FTP &amp; Telnet servers
 - support for OTA updates
 - many new and improved hardware access modules implemented in C
 and many more...

Control commands:
  CTRL-A        -- on a blank line, enter raw REPL mode
  CTRL-B        -- on a blank line, enter normal REPL mode
  CTRL-C        -- interrupt a running program
  CTRL-D        -- on a blank line, do a soft reset of the board
  CTRL-E        -- on a blank line, enter paste mode

For further help on a specific object, type help(obj)
For a list of available modules, type help('modules')
&gt;&gt;&gt; help('modules')
__main__          m5flow/m5mqtt     math              uerrno
_thread           m5flow/m5stack    microWebSocket    uhashlib
ak8963            m5flow/peripheral microWebSrv       uheapq
array             m5flow/simple     microWebTemplate  uio
binascii          m5flow/ubutton    micropython       ujson
btree             m5flow/unit/adc   mpu6500           uos
builtins          m5flow/unit/button                  mpu9250           upip
cmath             m5flow/unit/color network           upip_utarfile
collections       m5flow/unit/dac   os                upysh
display           m5flow/unit/dual_button             pye               urandom
errno             m5flow/unit/ext_io                  random            ure
freesans20        m5flow/unit/ir    re                urequests
functools         m5flow/unit/ncir  select            uselect
gc                m5flow/unit/relay socket            usocket
hashlib           m5flow/unit/rgb_  ssd1306           ussl
heapq             m5flow/unit/tof   ssl               ustruct
io                m5flow/units      struct            utime
json              m5flow/utils      sys               utimeq
logging           m5flow/wifichoose time              uzlib
m5base            m5flow/wificonfig tpcalib           websocket
m5flow/app_manage m5flow/wifisetup  ubinascii         writer
m5flow/i2c_bus    m5ui              ucollections      ymodem
m5flow/m5cloud    machine           uctypes           zlib
Plus any modules on the filesystem
&gt;&gt;&gt; 

</code></pre>
<p dir="auto">etc...</p>
<p dir="auto">Or if you don't go into the REPL prompt, but still have the screen session connected, you can see the serial logs from the m5stack.  Reboot the M5stack and you should see the Blynk start up, plus some other useful information (network connection, connection to M5cloud, etc.).</p>
<p dir="auto">To exit the screen session press CTRL+A then CTRL+\ then y.</p>
]]></description><link>https://community.m5stack.com/post/2875</link><guid isPermaLink="true">https://community.m5stack.com/post/2875</guid><dc:creator><![CDATA[world101]]></dc:creator><pubDate>Tue, 05 Feb 2019 19:33:09 GMT</pubDate></item><item><title><![CDATA[Reply to Blynk on M5Stack via uiFlow and block-maker on Tue, 05 Feb 2019 14:33:07 GMT]]></title><description><![CDATA[<p dir="auto">Sweet, I got this to work as well.<br />
Looks like something else to add to the project list.</p>
]]></description><link>https://community.m5stack.com/post/2873</link><guid isPermaLink="true">https://community.m5stack.com/post/2873</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Tue, 05 Feb 2019 14:33:07 GMT</pubDate></item><item><title><![CDATA[Reply to Blynk on M5Stack via uiFlow and block-maker on Tue, 05 Feb 2019 14:01:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/423">@lastcaress</a> said in <a href="/post/2871">Blynk on M5Stack via uiFlow and block-maker</a>:</p>
<blockquote>
<p dir="auto">So I got hold of a macbook and tried via ampy and.. it works!! I should've tried this before as my attemps at using the blynk python library probably didn't work before because I used rshell and maybe it sends the file in a different format? This is very nice!</p>
</blockquote>
<p dir="auto">Ampy didn't work on my macbook pro and it took me ages to find out that my pythone was P3 but I hadn't set up the enviroment shell correctly.<br />
Glad it works.</p>
]]></description><link>https://community.m5stack.com/post/2872</link><guid isPermaLink="true">https://community.m5stack.com/post/2872</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Tue, 05 Feb 2019 14:01:13 GMT</pubDate></item><item><title><![CDATA[Reply to Blynk on M5Stack via uiFlow and block-maker on Tue, 05 Feb 2019 13:44:41 GMT]]></title><description><![CDATA[<p dir="auto">So I got hold of a macbook and tried via ampy and.. it works!! I should've tried this before as my attemps at using the blynk python library probably didn't work before because I used rshell and maybe it sends the file in a different format? This is very nice!</p>
]]></description><link>https://community.m5stack.com/post/2871</link><guid isPermaLink="true">https://community.m5stack.com/post/2871</guid><dc:creator><![CDATA[LastCaress]]></dc:creator><pubDate>Tue, 05 Feb 2019 13:44:41 GMT</pubDate></item><item><title><![CDATA[Reply to Blynk on M5Stack via uiFlow and block-maker on Tue, 05 Feb 2019 06:51:42 GMT]]></title><description><![CDATA[<p dir="auto">I am running the latest firmware and I uploaded the <a href="http://BlynkLib.py" target="_blank" rel="noopener noreferrer nofollow ugc">BlynkLib.py</a> file from the git repo you linked using rshell to /flash/lib :P I used a raspbian os to it as I've never been able to use ampy! The import BlynkLib line of code doesn't cause any error. I did paste the auth key :D<br />
I do not know how to access the repl prompt though!</p>
]]></description><link>https://community.m5stack.com/post/2869</link><guid isPermaLink="true">https://community.m5stack.com/post/2869</guid><dc:creator><![CDATA[LastCaress]]></dc:creator><pubDate>Tue, 05 Feb 2019 06:51:42 GMT</pubDate></item><item><title><![CDATA[Reply to Blynk on M5Stack via uiFlow and block-maker on Tue, 05 Feb 2019 01:17:40 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/423">@lastcaress</a></p>
<p dir="auto">If it doesn’t understand that line it may not have  imported the library correctly.  Did you put it in the /flash/lib directory on the m5stack? Also, just wanted to make sure you are running the latest v1.1.2 firmware.</p>
<p dir="auto">Did you paste your Blynk Auth Key into the flow before running it in uiFlow?</p>
<p dir="auto">Also, are you able to access the REPL prompt? If not I can show you how. It’s good for troubleshooting.</p>
]]></description><link>https://community.m5stack.com/post/2864</link><guid isPermaLink="true">https://community.m5stack.com/post/2864</guid><dc:creator><![CDATA[world101]]></dc:creator><pubDate>Tue, 05 Feb 2019 01:17:40 GMT</pubDate></item><item><title><![CDATA[Reply to Blynk on M5Stack via uiFlow and block-maker on Mon, 04 Feb 2019 21:31:38 GMT]]></title><description><![CDATA[<p dir="auto">It manages to import the library, it just doesn't understand that attribute!</p>
]]></description><link>https://community.m5stack.com/post/2862</link><guid isPermaLink="true">https://community.m5stack.com/post/2862</guid><dc:creator><![CDATA[LastCaress]]></dc:creator><pubDate>Mon, 04 Feb 2019 21:31:38 GMT</pubDate></item></channel></rss>