@bazman thanks!
Posts made by erich
-
RE: String literal (f-string) not supported in uiflow / micropython on M5StickC Plus?
@pandian-nano yes you’re right, thanks for the clarification!
-
RE: String literal (f-string) not supported in uiflow / micropython on M5StickC Plus?
@pandian-nano thanks a lot this is very helpful but according to the page you mention your statement saying”fstring is not supported in micropython” is not totally true.
If you refer to the page you mention you can use FString but not in all scenarios.Example;:
print(f"{x}" "ab") # works
print("a{}a" f"{x}") # failsFString is therefore ‘partially’ supported in micropython
Thanks anyway, now I have an official explanation ;;)
-
RE: String literal (f-string) not supported in uiflow / micropython on M5StickC Plus?
@pandian-nano thanks I have already applied this workaround but I was just asking for confirmation that f-string is not supported on the StickCPlus with uiflow1.
-
String literal (f-string) not supported in uiflow / micropython on M5StickC Plus?
Hi there,
I have a script which is using string literal, something like:
name = "john"
print(f"My name is {name}")This code is not working in UIFlow v1 with an M5StickCPlus
I also tried directly in the REPL and I have the same error.Can someone please confirm this is not supported (by UIFlow? Micropython version of the StickCPlus?)
Thanks
Eric -
RE: Infrared on the M5StickC+ and UIFlow, is it me or?
@gavin67890 in case you're still interested, I have resumed my work on the M5StickC plus and the KY-022 IR receiver.
So far I am able to load the external IR library and use the REPL to scan and get information about my IR remote buttons.Means that it works and I can now code the UI stuff !
-
RE: UiFlow 2.0 discuss(how-to, bug, feature request or sometings)
@gavin67890 thanks a lot for the link!
I agree it does not look much different from the current stickcplus. Also I see it was supposed to be launched end of July… let’s wait and see
-
RE: UiFlow 2.0 discuss(how-to, bug, feature request or sometings)
Hi there,
Sorry I just need a confirmation: Alpha-26: Is it right built-in Infrared is not (yet, hopefully) supported on the M5StickC PLUS? I cannot find IR in the integrated hardware menu.
Also, I have noticed support for M5StickC Plus 2 , is it an upgraded M5StickC Plus not out yet? I am very interested ;)
Thanks for your answers!
-
RE: Infrared on the M5StickC+ and UIFlow, is it me or?
Hi Gavin,
I moved on to some other projects and did not have time to come back to this one yet (even though I would really like to achieve something with IR + M5StickC+).
I found a 3rd party IR library on the internet but it was quite a challenge to integrate it to the M5 ecosystem....work in progress but not much time at the moment.
I'll keep you posted as I resume my work on this. -
Infrared on the M5StickC+ and UIFlow, is it me or?
Hi all,
I am generally coding with VSCode / PIO in C but with a M5StickC+ hanging around I wanted to develop an idea with a small battery powered device to replace some of my tools
The idea is to run multiple programs on the stickc to do various things like measuring distance, send IR codes, identify IR from any remote control etc...
In fact I have already built a small project with an arduino and an IR receiver (KY-022 module) few years ago able to recognise a big amount of IR standards (NEC, SAMSUNG, etc...) and their HEX/DEC code using an easy library found on the internet....it is working like a charm and I have been able to recognise the standard use for all the remote controls I have tested so far.Well long story short I'd like to replace it because it is bulky, 9V battery powered, using old fashion LCD display etc...
This was the opportunity for me to start looking at UIFlow.I could get ready quite fast and I guess I understand now most of the features.
However I have been VERY VERY disappointed by the limited (to say the least) features....
I know the Stickc+ only has a Tx IR, not Rx but still, this is a joke, only limited to NEC standard and that's it? or I am missing something.Anyway I purchased the IR Remote module from M5Stack and same joke, on the IR Rx you can only acknowledge a signal has been received...and it is not working with any remote I have tried (not a range issue, I was 10cm from the module)...no possibility to change from NEC either....
This module is totally useless...at least with the default UIFlowNow I am trying to come back to my trusty KY-022 plugged on StickC+ GPIO but I need external libraries.
I understand you can load external lib.py files on the stickc+ memory and load them with Execute module.
Then I guess I should create some Custom blocks to include the code from the lib and extend the IR functionalities?Do you think this is the right way to do it in UIFlow, does someone have any experience with external micropython IR libraries in UIFLow?
Thanks a lot!
Eric -
RE: IoT with M5Stack and UIFlow is now live!
Nice! Do you have any idea which topics you'd like to touch on for the next volumes?
-
RE: Looking for Factory Test Source code for Core2
Hello,
Just to be sure this is not a problem with your unit, I would suggest you download the EasyLoader tool you can find the link on this page: https://docs.m5stack.com/en/core/core2
This tool allows you burning your Core2 with the stock demo program so that you can test it without having to compile it.
Should be a good start
-
RE: Any experience with Core2<>LVGL lib ?
Just answering to myself :)
I spent the whole day digging into LVGL lib on the Core2.
I must say there's a huge learning curve for me (I'm just a hobbyist with just average knowledge).I initially thought it would be very easy to use but this is definitely not the case (again, for me).
However I am happy because I guess I have understood the basic concepts and I was finally able to diplay objects like buttons or sliders on the screen and interact with the touch display.This library is incredibly powerful. The fact that I am playing with others devices than M5Stack stuff motivates me to keep on investigating as I will be able to use it on almost any other screen devices.
Would be great to use this post if you want to share your experience with LVGL and the Core2.
-
RE: M5STACK CORE 2 SOUNDS
@ajb2k3 As I mentioned in the other post my code is written in C (VSCode + PIO) however I would like to try Micropython for my next project M5Stuff project :)
Can you please tell me more about your guide? Is it possible to buy it somewhere? is it the same as what is mentioned in your signature: UIFlow handbook? I would be very much interested, thanks! -
RE: How to Generate a Beep?
@ajb2k3 Thanks for the tip. Unfortunately it is not that easy when not using UIFlow.
I am using VSCode + PIO with the Arduino framework -
Any experience with Core2<>LVGL lib ?
Hi there,
I am starting a project on my Core2 device and while I'm looking at the Core2 graphic lib I would be curious to know if some of you have tested LVGL instead of the M5 default graphic lib? Any feedback?
Thanks!
Eric -
RE: SPIFFS on M5StackCore2
Yes you can, I am starting playing with my Core2 and could load a jpg image loaded in the SPIFFS using the SPIFFS.h
Cheers
Eric -
RE: M5STACK CORE 2 SOUNDS
I came across this post right after posting here:
https://community.m5stack.com/topic/3179/how-to-generate-a-beep
The solution suggested by @AgreeDK does perfectly work! (thanks to you!)
I would however really like M5 people to update the Core2 lib with a simple beep function like on the Core
Thanks
-
RE: How to Generate a Beep?
@AgreeDK Thanks a million for your solution, it does work perfectly with the Core2 !
Just a shame there's no simple beep method in the core2 lib :(@Shift1313 as far as I understand, the .Speaker method you are referring to is not part of the M5Core lib, it is working with the Core but not with the Core2