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

    [Solved]Where to get basic (offline?) MicroPython firmware with lcd module support?

    FACES Kit
    11
    27
    127.4k
    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.
    • M
      M5MPy
      last edited by

      Use Lobo's implementation, will work.

      See here :

      https://github.com/loboris/MicroPython_ESP32_psRAM_LoBo

      1 Reply Last reply Reply Quote 0
      • aivarannamaaA
        aivarannamaa
        last edited by

        I'm able to use display.TFT, but I'm looking for the API described at https://github.com/m5stack/M5Cloud#micropython-api and https://github.com/m5stack/M5GO

        1 Reply Last reply Reply Quote 0
        • D
          devros
          last edited by

          hi, i flashed with flow firmware and then with rshell modifed main.py (removed uiflow stuff) then you can use API libraries localy

          aivarannamaaA K 2 Replies Last reply Reply Quote 0
          • aivarannamaaA
            aivarannamaa @devros
            last edited by

            @devros Thanks! Flow firmware works nicely!

            1 Reply Last reply Reply Quote 0
            • K
              kurthofman @devros
              last edited by

              @devros : Hello, could you give me a start on how to connect with rshell ? I'm pretty new on all this :-)

              lukasmaximusL 1 Reply Last reply Reply Quote 0
              • lukasmaximusL
                lukasmaximus @kurthofman
                last edited by

                @kurthofman I made a youtube video on serial communication and using the micropython REPL for both windows and mac https://www.youtube.com/watch?v=V67MY-1ccqM its not rshell but basically does the same thing. If you want to put new modules on the M5stack you can use a program called ampy, adafruit have good documentation on it, but I'm also going to put a video out this week on how to use ampy with m5stack.

                1 Reply Last reply Reply Quote 1
                • H
                  heybin
                  last edited by

                  hello, m5stack_micropython was update, you can try it

                  1 Reply Last reply Reply Quote 0
                  • K
                    kurthofman
                    last edited by

                    Hello, I flashed UIFLOW 1.0.0 for M5STICK but LCD doesn't work (blank screen).
                    Code :
                    from m5stack import *
                    from m5ui import *

                    lcd.clear()
                    lcd.print('hello world', 0, 0, 0xffffff)
                    speaker.tone(1600, 200)

                    1 Reply Last reply Reply Quote 0
                    • lukasmaximusL
                      lukasmaximus
                      last edited by

                      Please refer to this topic http://forum.m5stack.com/topic/426/m5flow-version-1-0-0-m5-stick-connection/6

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

                        @lukasmaximus
                        What is the firmware I need to use if I want to have the repl displayed directly on the lcd of the m5stack as seen here. alt textthanks

                        P 1 Reply Last reply Reply Quote 0
                        • lukasmaximusL
                          lukasmaximus
                          last edited by

                          Hi @jpilarski I haven't been able to access the REPL from the M5stack screen myself sorry, where did you find this image?

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

                            @lukasmaximus
                            The image is from https://forum.micropython.org/viewtopic.php?t=1996&start=10 but when I purchased the m5stack faces it had the on screen shell loaded and working. My problem is I don't know which firmware to use to get it back to original.

                            1 Reply Last reply Reply Quote 0
                            • lukasmaximusL
                              lukasmaximus
                              last edited by

                              faces.py and main.py are the only libraries I can find for the keyboard right now https://docs.m5stack.com/#/en/quick_start/m5core/m5stack_core_get_started_MicroPython_m5cloud

                              Let me check once I get hold of a faces keyboard to test

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

                                @lukasmaximus
                                I tried those but that isn't the code that gives you an on screen shell. The faces board I recently purchased had a different micropython loaded than the m5cloud firmware and it booted right into an on screen repl. If I remember correctly I think it said micropython version 1.9.3 at the top of the shell but I might be wrong about that. Anyways all the faces.py and main.py appear to do is allow you to type using the keyboard and print it out on screen but I don't think they give you access to the on screen repl. From what I gather it looks like it makes the most sense to use uiflow firmware on faces and that "faces_repl.py" code should be available in the apps page in the on board startup list. It would also be really great if there were blocks in UIflow so faces could be more easily used in Uiflow. thanks

                                1 Reply Last reply Reply Quote 0
                                • lukasmaximusL
                                  lukasmaximus
                                  last edited by

                                  I think they must have been using loboris's micropython version, as I haven't seen any of our engineers using or suggesting this function. in the forum you linked to it mentioned something about the webrepl, I have seen various guides on how to do this for esp32, but haven't tried it myself on the m5stack yet

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

                                    @lukasmaximus
                                    I purchased the faces device from the m5stack store, is it best to contact them directly on how to get a copy of the firmware they are shipping on the device. Also I have been trying to get faces to work in UIflow but I keep getting I2C bus already used. Is it possible to get an example of how to use the i2c blocks.

                                    1 Reply Last reply Reply Quote 0
                                    • lukasmaximusL
                                      lukasmaximus
                                      last edited by

                                      @jpilarski I opened up a stock faces keyboard device, and serialed into it, all that was on the flash was a boot.py file that only contained one line
                                      # This file is executed on every boot (including wake-boot from deepsleep)
                                      So as you say it must be the firmware of the device, and i'm unaware of any way to extract it. Best to wait until the team get back from chinese new year holiday and ask then. Although it's nice to have repl on the device itself I personally felt that the keys were too close together to really have an enjoyable session on the device and there was no way to scroll up through the log or use upper case letters. Also besides from playing with the pins and internal sensors I doubt it would be useful for anything else, might be nice if you could connect two m5's together and have one display the repl of the other though.

                                      1 Reply Last reply Reply Quote 0
                                      • P
                                        paopaomj @jpilarski
                                        last edited by

                                        @jpilarski said in Where to get basic (offline?) MicroPython firmware with lcd module support?:

                                        @lukasmaximus
                                        What is the firmware I need to use if I want to have the repl displayed directly on the lcd of the m5stack as seen here. alt textthanks

                                        You can find it here

                                        1 Reply Last reply Reply Quote 1
                                        • S
                                          sethwoodworth
                                          last edited by

                                          I too had a FACES M5Stack arrive running a python repl that was lost as soon as I flashed another program.
                                          There was an EOINT error of some kind, possibly something crashed to the python repl and it wasn't intended to ship that way?
                                          Regardless, I would very very much like to be able to extend the python repl on the device. The keyboard face is awesome, and there is plenty of functionality to add, like scrollback.
                                          What source was this image built from? I think that it was compiled by Ziban based on strings inside the image.

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

                                            I did come across this info about on screen repl https://forum.micropython.org/viewtopic.php?t=5589

                                            i2c = machine.I2C(scl=machine.Pin(4), sda=machine.Pin(5))
                                            oled = ssd1306.SSD1306_I2C(128, 64, i2c)
                                            from FBConsole import FBConsole
                                            console = FBConsole(oled)
                                            os.dupterm(console)
                                            
                                            S 1 Reply Last reply Reply Quote 1
                                            • First post
                                              Last post