Hi every body. I'm from Viet Nam and the MicroPython user in my country is very few...
I going to learn MicroPython, and today i code the simple blink LED.... It working , the LED is blinked.. But when i turn off the power and
Re-supply power .... The LED is not blink ....
So i want to ask you :
1: When i push reset button... The micropython source code was reset ??? and earse the program ?
2: If not, how to hold the program still working ??
Thank you .. And sorry about my English !!
ESP32 can't run the program after reset or re-supply power
Re: ESP32 can't run the program after reset or re-supply power
If you do not store the code in a file on the device, it is lost after reset. There are many tools to copy files between your PC and the Micropython device, like rhshell, ampy, webrepl, upycraft, ... Most Micropython devices have an small internal file system in which you can store your scripts, and execute them with:
import myfile
iIf your file is called for instance "myfile.py"
import myfile
iIf your file is called for instance "myfile.py"
Re: ESP32 can't run the program after reset or re-supply power
Can you show me how to usse this...Roberthh wrote: ↑Mon Apr 15, 2019 2:04 pmIf you do not store the code in a file on the device, it is lost after reset. There are many tools to copy files between your PC and the Micropython device, like rhshell, ampy, webrepl, upycraft, ... Most Micropython devices have an small internal file system in which you can store your scripts, and execute them with:
import myfile
iIf your file is called for instance "myfile.py"
Or if you have a tutorial link, pls give me. Thank you alot..
Re: ESP32 can't run the program after reset or re-supply power
Which device are you using?