🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    M5ez, a complete interface builder system for the M5Stack as an Arduino library. Extremely easy to use.

    PROJECTS
    22
    95
    606.7k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      Calin
      last edited by

      Awesome work :)

      1 Reply Last reply Reply Quote 0
      • RopR
        Rop
        last edited by

        M5ez now supports the FACES keyboard, both in its own textInput function and with a special ez.getFACES() function. Until I figure out how to properly detect that it is there, you will have to compile with #define M5EZ_WITH_FACES in the library's .h file, but I hope to fix that soon too.

        1 Reply Last reply Reply Quote 0
        • J
          janseta
          last edited by

          More than great!
          Congratulations!!!

          One question, about the wifi password...
          Does de M5s retain it if you turn off?
          Is there a way to retain the proper Wifi and password if the M5s is switched off?

          RopR 1 Reply Last reply Reply Quote 0
          • RopR
            Rop @janseta
            last edited by

            @janseta Funny you should ask that...

            I just finished completely revamping the wifi in M5ez. It now has a menu that allows you to set whether you want to autoconnect on boot, and it will let you save and manage multiple SSIDs and keys (it will just ask you whether you want to save a network after you connect). So your M5Stack will behave like your phone: if it knows the wifi it will connect. I just updated the github repository... :)

            J 1 Reply Last reply Reply Quote 0
            • J
              janseta @Rop
              last edited by

              @rop avesome!!! Great!!!
              (づ ̄ ³ ̄)づ

              1 Reply Last reply Reply Quote 0
              • RopR
                Rop
                last edited by

                BTW: If like this please star the repository on github. It helps people that need it find it.

                1 Reply Last reply Reply Quote 0
                • H
                  HOW
                  last edited by

                  Hallo Rop,
                  thank you for your great work.
                  I have a problem with the newest version, i got the following error while compiling in Arduino IDE 1.8.5

                  Documents\Arduino\libraries\M5ez-master\src\M5ez.cpp:1319:19: error: 'struct esp_wps_config_t' has no member named 'factory_info'

                   strcpy(config.factory_info.device_name, "ESP STATION"); <
                  

                  What do i wrong? The version with old WiFi compiles without problems.

                  RopR 1 Reply Last reply Reply Quote 0
                  • RopR
                    Rop @HOW
                    last edited by Rop

                    @how Thank you for trying it.

                    You might want to update your ESP32 library: they changed how WPS is done. I found my somewhat older library caused all sorts of underlying little problems that have all been fixed. Wifi is more stable and doesn't error all the time, etc etc.

                    I just moved my old $arduinodir$/hardware/espressif/ESP32 directory and re-followed the instructions on https://github.com/espressif/arduino-esp32/

                    Please let me know if this works...

                    I'll put a note of this in the README anyway.

                    1 Reply Last reply Reply Quote 0
                    • RopR
                      Rop
                      last edited by Rop

                      Ha. even better. I noticed the changes they made are relatively recent: end of June 2018. So that means lot of people will have the incompatible library. Rather than have it not work out of the box for all these people, I have turned off WPS by default, you have to remove #define M5EZ_WITHOUT_WPS in the M5ez.h file to use the code, and then if you notice it doesn't work the docs tell you how to fix it...

                      1 Reply Last reply Reply Quote 0
                      • H
                        HOW
                        last edited by

                        Hello Rop,
                        thank you very much for your quick answer and the "patch".
                        Now it compiles (with old esp32 libary)
                        It works perfect, great work!
                        Have a nice day.

                        RopR 1 Reply Last reply Reply Quote 0
                        • J
                          janseta
                          last edited by

                          Hi Rop,

                          I have another request ...
                          An NTC or RTC Clock service (or both) can be incorporated ...
                          For many applications it is necessary to know the clock time.

                          It would be ideal to synchronize the clock via NTC every time you connect to a new Wifi, and / or also every so often (every 2 hours, every day ...)

                          As I have been able to read, the ESP32 has RTC, but is made for the internal synchronization process, and has poor accuracy. https://www.esp32.com/viewtopic.php?t=3715

                          A solution seems to be here:
                          You can set the time in the same way as in the example
                          ESP8266 / NTP-TZ-DST
                          (see constant RTC_TEST) (it is the time of time - seconds since January 1, 1970), for this you can use two or three buttons (SET, + or / and -) and a screen, as in many clocks and appliances.

                          RopR 1 Reply Last reply Reply Quote 0
                          • RopR
                            Rop @HOW
                            last edited by

                            @how Thank you for using M5ez.. :)

                            You still want to switch to the latest library version though: other things (esp. Wifi) are much more stable with it.

                            1 Reply Last reply Reply Quote 0
                            • RopR
                              Rop @janseta
                              last edited by

                              @janseta Thanks...

                              Some things are on my list:

                              • an inactivity timeout to power down if not using it
                              • backlight setting

                              Both would be stored in flash and settable from a settings menu that also incorporates the Wifi menu, so create a new linkable "Settings" menu a level higher. I guess I can also include an NTP clock, I'll see..

                              1 Reply Last reply Reply Quote 0
                              • C
                                Calin
                                last edited by

                                You can use nvs wrapper "preferences" for storing values that must survive reboot and even flashing: https://github.com/espressif/arduino-esp32/tree/master/libraries/Preferences
                                Also Arduino-esp32 provide an integrated NTP library: https://github.com/espressif/arduino-esp32/tree/master/libraries/ESP32/examples/Time

                                RopR 1 Reply Last reply Reply Quote 0
                                • RopR
                                  Rop @Calin
                                  last edited by

                                  @calin Hi Calin. I already use Preferences in the new wifi code to store the SSIDs and passwords and a general flag whether autoconnect is on. Thanks for the NTP pointer...

                                  1 Reply Last reply Reply Quote 0
                                  • R
                                    r_255
                                    last edited by

                                    Just got my m5

                                    I am novice on programming and got it working!
                                    awesome..

                                    Also love the example file with the systeminfo,
                                    i hope to make a mqtt remote out of it and this should make it possible for me!

                                    Also got a question/request: it is possible to make the menu rotating? so last one down, will be the 1st one up?

                                    offtopic
                                    some how the quarter just falls here, something with old phone booths and dtmf beepers. lol

                                    RopR 2 Replies Last reply Reply Quote 0
                                    • RopR
                                      Rop @r_255
                                      last edited by

                                      @r_255

                                      I am novice on programming and got it working!
                                      awesome..

                                      Cool! People like you are why I wrote it: programming needs to be easy and fun so more people get into it!

                                      Also love the example file with the systeminfo,
                                      i hope to make a mqtt remote out of it and this should make it possible for me!

                                      mqtt looks cool! If you're going to use the FACES keyboard, you will probably need ez.textBox, which I have on the drawing board. It will allow for both entry and display of longer texts.

                                      Also got a question/request: it is possible to make the menu rotating? so last one down, will be the 1st one up?

                                      I am currently testing features where you can replace up/left at the beginning or right/down at the end with a button name and caption of your choosing. Combined with the two new reserved button names 'first' and 'last', you can do that as well as lots of other clever tricks. (Like exit back out of a menu very easily, or make 2-D seeming menus by having the main image menu be horizontal and submenus (text or image) be vertical. So that's coming...

                                      offtopic
                                      some how the quarter just falls here, something with old phone booths and dtmf beepers. lol

                                      :)

                                      1 Reply Last reply Reply Quote 0
                                      • RopR
                                        Rop @r_255
                                        last edited by Rop

                                        @r_255 I just added the feature that allows menu rotation to the repository. upOnFirst and downOnLast properties can replace those navigation buttons with whatever you want. In fact, the main menu in the demo app now rotates, so you can see how it's done there, or in the README documentation for details.

                                        Also: I changed around how MAIN_DECLARED works in the examples: it is now defined as true or false meaning you can just use its value from code instead of needing variables or #ifndef lines.

                                        1 Reply Last reply Reply Quote 0
                                        • R
                                          r_255
                                          last edited by

                                          @Rop

                                          Omg, you have been busy... :)
                                          I am not going to use the keyboard, even it looks nice...

                                          I need stuff ( remote ) to be plain simple as i have to deal with people that hold the mouse upside down.
                                          so 3 buttons is more than enough ;) for this purpose.

                                          i am off to github doing some exercises and read some code.

                                          big thanks and a huge smile !

                                          1 Reply Last reply Reply Quote 0
                                          • RopR
                                            Rop
                                            last edited by

                                            Just released 1.0.0 as I think it's pretty stable. Also I applied to have M5ez included in the Arduino library manager.

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post