[Solved]Where to get basic (offline?) MicroPython firmware with lcd module support?
-
hi, i flashed with flow firmware and then with rshell modifed main.py (removed uiflow stuff) then you can use API libraries localy
-
@devros Thanks! Flow firmware works nicely!
-
@devros : Hello, could you give me a start on how to connect with rshell ? I'm pretty new on all this :-)
-
@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.
-
hello, m5stack_micropython was update, you can try it
-
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) -
Please refer to this topic http://forum.m5stack.com/topic/426/m5flow-version-1-0-0-m5-stick-connection/6
-
@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. thanks -
Hi @jpilarski I haven't been able to access the REPL from the M5stack screen myself sorry, where did you find this image?
-
@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. -
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
-
@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 -
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
-
@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. -
@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. -
@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. thanksYou can find it here
-
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. -
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)
-
@jpilarski That's helpful!
I'll give that a shot tonight and see how it goes.Overall, there are a lot of things I want to document about the M5Stack in terms of running micropython. I'm learning TONs of fun new stuff since I got it.
-
@sethwoodworth I mate, sorry, documenting micropython has been delayed as I'm working on UIFlow blocky side of things along with hardware. You can see my progress in projects section.