And a clear documentation on MicroPython API as all I can guess is from Loboris repository who kindly provide a true MicroPython distribution but without what you can read in UIFlow python screen.
Posts made by TitiMoby
-
RE: [UIFlow] Open source UIFlow
-
RE: [UIFlow] Open source UIFlow
Each company is free to decide whether to open their software or not, but I think that M5Stack will gain so much love and help if they decided to open UIFlow, give a way to contribute to documentation...
Is it possible to have a statement on this from M5Stack or do we continue to ask it without answers as it is for months now?
-
RE: UIFlow 1.7.3
@iamliubo May I ask you if you are part of M5Stack staff?
Not to bother you, just to understand the M5 ecosystem ;) -
RE: UIFlow 1.7.3
@iamliubo how can we help to see M5stack go OpenSource?
The devices are great, but software will be boosted in a large way. -
RE: [UIFlow] Open source UIFlow
The quality of the hardware is really good, it reminds me the Adafruit dynamics.
Open source core tools will be such a good idea to let us, as a community, help and improve all M5Stack software.Anyone from M5Stack has an opinion on this?
-
RE: ENV II Unit Support for UI Flow (device M5StickC)
I’m sorry to post once more, but there sa something I did not get.
In fact, my mistake was to use th Demo button in UIFlow.
There is only a demo for Env v1 and this is what I modified.
The link in the documentation was for a proper ENV v2 UIFlow program but as I never used m5f and there was no prior information in the documentation, I thought it was the same as the Demo in UIFlow.I know I must pay more attention, but if a beginner comes to the documentation, I think there must be a link to usage of m5f files before.
That’s it, sorry for the noise 🤷♂️😇
-
RE: ENV II Unit Support for UI Flow (device M5StickC)
And the answer was to learn how to handle Hat with UIFlow 🤣
If someone tries to use ENV 2 demo, beware that it references the ENV hat version one.
You need to remove it, add the ENV 2 hat, the replace with the new module functions the different calls.If someone knows how to do it, I can report the documentation error.
-
RE: ENV II Unit Support for UI Flow (device M5StickC)
I just spotted your topic and I'm wondering how you solved the issue.
I'm running the current 1.7.2 UIFlow and firmware but when opening ENV II demo from the documentation page it does not recognize the ENV II Hat and error message appear about not connected hat.As I also use micropython, I inspected modules and saw that there was a hat.ENV2.
So I just had to modify one line of code.But I did not figure out how to do it from UIFLow blocks.
What is the solution? -
RE: Where is the WiFi config held?
On my core gray, I have a specific code to write my config file myself.
That way, I always know how to read it back.
My experiments are available on Github and I used it in several of my videos, for exemple this one on writing and reading this config file.It’s in french, but I think the code is simple enough.
If it’s not the case, I can answer questions. -
RE: [M5Paper] UiFlow support
As this is not my first M5 board, I think I was in App mode. But as the main source of errors is often between the chair and the keyboard, I'll focus my attention on this point 😉
-
RE: [M5Paper] UiFlow support
So no stable solution for now, that’s sad.
It’s a bit frustrating to have some micropython working but not the full experience.
At some point, that could be better to switch to hardware that runs CircuitPython, less struggle. -
M5Paper SDCard access
Is there a way to access M5Paper SD card with MicroPython?
There is no uos module, but os has mount function.
I tried:import os os.mount(machine.SDCard(), '/sd')
which result in:
Traceback (most recent call last): File "<stdin>", line 1, in <module> OSError: 16
-
RE: [M5Paper] UiFlow support
Does anyone have ideas to put MicroPython libraries on the M5Paper?
-
RE: [M5Paper] UiFlow support
That's very nice to be able to use UIFlow with M5Paper, thanks. 🥰
This also open the door to micropython.
I tried it and it works in UIflow.Now, I'm trying to figure out how to add libraries.
With M5 core, I use either thonny or rshell.
But I could not connect to M5Paper with those.The only tool that worked was Mu editor, but only to see the REPL. Could not access files.
Is there a trick to upload files on M5Paper?
-
RE: M5Paper and images drawing
As the weather looks really rainy this week end, I'll have plenty things to try.
Thanks all, I'll keep posted my progress. -
RE: M5Paper and images drawing
I did not find definition of supported BMP file format.
Do someone knows this? -
RE: M5Paper and images drawing
So I did some experiment and I was on the right way to do it, except I'm trying to port an example that uses BMP files and those won't be displayed.
I downloaded the flower from M5Paper examples.
I put it on my SD card, both as /flower.jpg and /bmp/flower2.jpg (I know, bmp is for... bmp files, but I wanted to test file in a folder)
Then I run the code from @world101 just renaming the file I wanted.
This works.I then put my bmp files (coming from an Adafruit guide) in my SD card, folder is bmp.
I even tried to use a shorter name for the file.
None worked.M5EPD_Canvas canvas(&M5.EPD); void setup() { M5.begin(); M5.EPD.SetRotation(90); M5.EPD.Clear(true); //overlay bg on full screen canvas.createCanvas(540, 960); //canvas.setTextSize(2); //jpg must be in 90degree (full screen) //image from SD card //canvas.drawJpgFile(SD, "/bmp/flower2.jpg"); //put image.jpg on the sdcard before uploading sketch //canvas.drawBmpFile(SD, "/bmp/weather_icons_20px.bmp", 0, 0); canvas.drawBmpFile(SD, "/bmp/shortname.bmp", 0, 0); canvas.pushCanvas(0, 0, UPDATE_MODE_GC16); delay(2000); //shutdown to save battery Serial.println("shutting down now..."); M5.shutdown(); } void loop() { }
I think I need to dig the documentation to find which precise BMP format is supported.
-
RE: M5Paper and images drawing
It looks like what I tried.
I need to isolate the part of my code that is supposed to draw the image.
Maybe there is an issue with the file I use.
Thanks a lot. -
M5Paper and images drawing
I'm looking for example of loading and drawing BMP or Jpg images on the M5Paper.
It's a bit hard to try to figure it out from the Factory test so if anyone has some shorter example, that will help me a lot. -
RE: Micropython - SHT30 in BTC Base
It is a bit too early because MicroPython is still not there on M5Paper that I own, but as it uses the same SHT30, I also noticed some delta issue in temperature using Arduino.
Is it a common thing with this component ?