I am just getting started on MicroPython Programming with ESP32 and ESP8266.
When I load a blink program into my ESP32 using the Arduino IDE it is always there and functioning each time I apply power to it.
But when I load a program on the ESP32 using MicroPython it only functions as long as it is plugged in. Once power is removed and reapplied the led no longer blinks and the program seems to be gone.
I assume that later in this course I will find out how to make the MicroPython program function on each power-up ?
Thanks.
Hi.
Which IDE are you using?
Thonny IDE or uPyCraft IDE?
You’re probably just running the code, and not uploading the code to the board.
Can you tell me the exact procedure you’re following to upload code?
Regards,
Sara
Using uPyCraft v1.0
- copy and paste example blink example into uPy
- save it
- download and Run
- led blinks on ESP32
- unplug ESP32 and led stops blinking
- plug ESP32 back in but led doesn’t blink
Hi.
If you press the ESP32 reset button, does the LED start blinking?
Did you save the code as main.py?
After uploading the code, do you see the main.py sketch on the left upper corner under the device folder?
Thank you very much, the problem is solved.
I realized that even though I had created a main.py file I was not actually saving my script to it.
Once i saved it to main.py everything is working as it should.