@rop I thought MyTZ object was already declared in your library, my fault.
Thank you for your explanation about objects. I misunderstood your previous directions and I thought I must use them to the widget to work. It seems it was a lot easier to do than that! The widgets I need to display are really simple, just a small text or icon reflecting the state of some variable's value, so I think a regular function will work. I'll try one more time. ;)
Now i am a copy and paste my own code .... coder....
Copied my slider and made a mechanism that selects and sets each slider.
Next and previous makes you jump between each slider, left and right sets the value , ok publishes the value and up gets you back to the main menu.
I still have issues to get my values in to m5ez object like the header, text works fine but int is still a issue. Tried to convert them to chars, but failed....
So much to learn at once.
I tried to build this project in PlatformIO for quite some time. It compiled fine, flashed fine to the m5stack, and I could successfully connect to the AP, but the webpage simply wouldn't load no matter what I did. After some troubleshooting I determined that the client.flush() around line 120 was causing the issue:
if (readyResponse) // отдать браузеру
String GET = parseGET(currentString);
After commenting this out the project works fine. I'm using the latest Chrome for Android for testing this, but also used Chrome on a Windows 10 PC and had the same result. The webserver simply gave an empty response.
Hope this helps someone else work through this example!
@ajb2k3 If I try your hello.h, it doesn't compile because of double commas that I had to take out first. After doing that, it doesn't display an image indeed. But your image also doesn't display if I do
In the setup() function. I don;t have the source JPG, but for now I'm assuming your JPG may be in a format that the M5Stack JPG library doesn't display, or something else is wrong with it.
Also: if you want the menu to have a header, you should add it in the declaration of the menu:
ezMenu images ("Hello World!");
The menu clears the screen before displaying anything when you run it. You'll rarely need to use ez.header.show if you use standard M5ez functionality.
Sorry, forgot the source jpg.
Interesting /\ the forum isn't showing the image above.
I think it may be the conversion to array that is causing issues. I had this before but can't remember how I solved it. I also needed to check that it wasn't just my code that was at fault (excluding the hello.h)
Install the UIFlow 0.7.0 software on your M5Stack.
Start the M5 stack and select with button B (App.List) then M5GO and again with button B (Run) then you select the appearing menu button C (Next) until you see the menu item Extension IR Remote, then connect the sensor and test.
With this program you can test all sensors of the M5Go IOT system.
(I have already told you the instructions for the construction of the sensors where you can find them)
However, you either need the M5Stack from the M5Go IOT set or the M5Stack Fire, since you need the M5Go bottom for the M5Stack that has the connection bars, but should also go with a Basic or Core M5Stack because the connection strips are nothing but the ports Here are the occupancy of the M5Go Bottom:
I updated the post (the SPIFFS was the original size while I had made space to make it bigger) and added a menu option for 7MB SPIFFS. Have also filed the pull request at espressif, all detailed in the edited lead post.