Open richardneitzke opened 6 years ago
Modifying $HOME/.local/lib/python3.7/site-packages/ampy/pyboard.py
worked for me. In the enter_raw_repl
function, find the following block and add a time.sleep(2)
after it:
while n > 0:
self.serial.read(n)
n = self.serial.inWaiting()
time.sleep(2) # this should fix it
specifying a delay with -d does the trick for me:
ampy -d 0.5 -p /dev/cu.wchusbserial1410 -b 115200 run <<file.py>>
Hi! I'm unable to use the Run command. When I execute it, all I get is the following:
What's interesing is that when I run
export LANG="en_US.UTF-8" && /usr/local/bin/ampy --port /dev/cu.wchusbserial1420 --baud 115200 reset
in my Terminal.app, it works just fine. Do you have any idea why that might be and how to fix it?