So i managed to load micropython on to one of my ESP32 devices. I am not clear how I load python code onto the board though. The docs weren't super clear on this. Any hints?
So i managed to load micropython on to one of my ESP32 devices. I am not clear how I load python code onto the board though. The docs weren't super clear on this. Any hints?
@dlakelan I think I remember *something* about the ESP32 not being straightforward. I think it doesn't have native USB, so you won't get the drag-and-drop experience - normally a micropython board will show up as a removable drive after flashing.
If you pull up the serial device exposed by the ESP32 though, you should have access to a micropython REPL.
I dimly remember using the WebREPL... Look into that, maybe? You'll have to set up the WiFi once through the REPL but once you do that you'll be able to put the setup into the main.py.
I definitely have the serial console, so that's great. But it definitely doesn't show up as a USB drive or anything.
I guess to get the webrepl running I have to get the ESP32 online though right? Anyway I found a solution rshell :
https://github.com/dhylands/rshell
It lets you copy files to the board, and then drop into the shell and execute commands. so that'll be perfect!
I'll see how it works once I have some actual code I want to upload. I haven't programmed python since the late 1990s so I'm gonna need to get up to speed again ;-)
Fortunately it should be extremely easy to get the basics working.