@world101 said in Uploading and running micropython code...?:
One thing I just noticed. If I run an ampy command (ampy -p /dev/tty.SLAB_USBtoUART -b 115200 ls) before doing the screen session, I get the REPL prompt every time without needing to press Ctrl+C. Running an ampy command must break the m5stack out of the currently running main program loop, which is what Ctrl+C does anyway. Just wanted to provide that additional detail.
Strange, didn't work for me.