Hi
I'm playing around with the latest pip3 install form thonny. (3.2.7)
I've connected my esp32 chip via usb. Flashed it with the latest micropython firmware.
Putted this code in the editor window.
Code hier eingeben...import time
from machine import Pin
led=Pin(1,Pin.OUT)
while True:
led.value(1)
time.sleep(0.5)
led.value(0)
time.sleep(0.5)
And ran it. Very nice. The led is blinking. But how to stop without unpluggin the chip.
Clicking on the stop sign brings me:
Could not enter REPL. Trying again with 3 second waiting time... Could not enter REPL. Giving up. Read bytes:
b''
What is the trick.? When i put the code in a main.py is was no more possible to connect to the chip. The only way was
to erase the flash with the cmd.:
Whats wrong??
$ esptool.py --port /dev/ttyUSB0 erase_flash