UiFlow 2.0 discuss(how-to, bug, feature request or sometings)
-
Hello @m5stack
UIFlow2.0.1 - M5 Cardputer : when I add
Init keyboard
andWhen keyboard was pressed
blocks I get the following Python code:def kb_pressed_event(kb): global kb pass def setup(): global kb kb.set_callback(kb_pressed_event) M5.begin() kb = MatrixKeyboard()
Unfortunately
kb.set_callback(kb_pressed_event)
is placed beforekb = MatrixKeyboard()
. E.g. before kb is defined. Resulting in AttributeError:NoneType object has not attribute set_callback
.Also in the callback function
global kb
is added which results in the following SyntaxError:identifier redefined as global
.BTW: running code:
def kb_pressed_event(kb): pass def setup(): global kb M5.begin() kb = MatrixKeyboard() kb.set_callback(kb_pressed_event)
Please fix.
Thanks
Felix -
Hello @m5stack
thank you for fixing the first part.
However the second part is still wrong. Below code created by the
When keyboard was pressed
block:def kb_pressed_event(kb): global kb pass
still returns a SyntaxError:
identifier redefined as global
.Please fix this too.
Thanks
Felix -
It seems like I can't download my programs anymore, neither in Wifi nor with the USB-C cable. I have a M5Stack Core2. This is what i get both ways :
-
Hi All.
New here and quite confused. Got the stickCplus2. Love the device, but writing/blocking some code is a pain in the a.. atm.
Can't seem to recreate the experiment in the docs (https://docs.m5stack.com/en/quick_start/m5stickc_plus2/uiflow); turning on (one of) the LED(s)? In the docs it's blocked with the PIN blocks. Why are those not in the 'built-in hardware' section? The LED's are built-in, right? But also the exact same compilation as in the example does not turn on a LED when run.
Then in the built-in section you can choose RGB, which definetely is not built-in?
Some schematic overview of what button/led is which in the code language would be nice. (Just a picture of the device having the code-name next to where it would be placed in the device. Understand what I'm trying to say?
Is UIflow1 still more stable? Must say, UI2 looks very good. But that's about it for now it seems.
Sorry for such a long comment already. Got a lot more questions, but I will come back with those later. Still a noob in the esp32 anyway, so I'll keep trying to find out stuff by myself as well.
Cheers!
-
Hi, Quakernate again.
Seems like there just isn't a LED available in UIFlow2.0. (thought it would maybe be named different) Was toying around in the UIFlow1 and there I was able to turn on the LED nd stuff way easier. (especially since there is a LED block at all)
Will code some in UIF1.13 until UIF2.0 is suitable (enough) for play.
If usefull I'm willing to keep fooling around in 2.0 as well just to list more bugs.
-
There is an RGB LED available in UIFLow but you need to use the Micropython code to call it.
-
Is there any option to import or convert a UiFlow 1 Blockly project to UiFlow 2?
-
@ajb2k3 I wonder what the difference is between UIFlow ver 1 and ver 2?
Can sketches be ported over from ver to ver 2, but not vice/versa? -
Bug fix request
UIFlow2 "http" block is completely non-functional, failing to load the 'requests' library. There is a typo with an errant 'u' that should not be there.ImportError: no module named 'urequests'
-
@teastain I'm not sure exactly but what I have found, there is some minor alteration to the backend and it would appear that UIFlow2 dropped the original graphic back end and moved to a unified LVGL graphics library.
Its possible that everything had to be rewritten because of the ESP32S3 devices and updates to ESP-IDF in Micropython.I do know part of the rewrite was because older devices were running out of memory to run Micropython due to the amount of duplication.
-
@dissy This is already known as there is a discussion on trying to work around this typo
-
@ajb2k3 My intent was making it known to the devs, in the hopes the problem could be fixed.
-
-
@m5stack In UIFlow v2.0.1 I can't find the CO2L unit in the list (SKU:U104). Am I missing something? I'm trying to use it with the M5dial via the I2C port.
-
how can i add apps multiple apps to my stickc plus 2?
I want to have more than on app ruing on it and idk how to set that up -
@wifi-guy223 Its not a computer, it is a microcontroller, it doesn't have an OS.
-
@m5stack Feature request to add CANBus unit (U085) to available units for the M5Dial. I've successfully tested the unit with the dial via the arduino IDE and a library but ideally I'd like to develop my project using UiFlow.
-
@waittherack said in UiFlow 2.0 discuss(how-to, bug, feature request or sometings):
It seems like I can't download my programs anymore, neither in Wifi nor with the USB-C cable. I have a M5Stack Core2. This is what i get both ways :
Can someone explain that to me ? It blocks everything, maybe the answer is within the yellow lines but I don't really know what to do :/
-
@waittherack said in UiFlow 2.0 discuss(how-to, bug, feature request or sometings):
@waittherack said in UiFlow 2.0 discuss(how-to, bug, feature request or sometings):
It seems like I can't download my programs anymore, neither in Wifi nor with the USB-C cable. I have a M5Stack Core2. This is what i get both ways :
Can someone explain that to me ? It blocks everything, maybe the answer is within the yellow lines but I don't really know what to do :/
is your device firmware(2.0.0 alpha) matches web UIFlow2 version (current 2.0.1)? if not then update via M5Burner
-
@ajb2k3 ??? Using UIFlow or Python you can have multiple Apps or Programs on your M5Stack device !!
https://www.hackster.io/AJB2K3/multipage-programs-on-the-m5stack-core2-bc302c