The source of the problem lies here: https://github.com/micropython/micropython/issues/6899
Thonny makes it visible, because it needs reliable feedback for its commands.
Search found 171 matches
- Thu Jun 10, 2021 6:29 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: WARNING:root:Unexpected echo
- Replies: 3
- Views: 5536
- Wed Jun 09, 2021 10:03 am
- Forum: General Discussion and Questions
- Topic: How to send binary data to the REPL?
- Replies: 8
- Views: 4011
Re: How to send binary data to the REPL?
You could use binascii.hexlify (and unhexlify on the device) -- this will "only" double each byte. Or you could do what rshell does -- execute a loop on the device which reads from sys.stdin.buffer (https://github.com/dhylands/rshell/blob/e2820f679aa06d40c35dbd5c626a0402047e28f8/rshell/main.py#L1072).
- Mon Jun 07, 2021 4:35 pm
- Forum: General Discussion and Questions
- Topic: Detection of a held button event
- Replies: 17
- Views: 6218
Re: Detection of a held button event
Selecting 'Install from Requirements File', selecting the target folder, changing to 'All files' to navigating to the target py. file and opening it. I see... 'Install from Requirements File' assumes you are giving a simple text file (usually named requirements.txt) containing one package name per ...
- Wed Jun 02, 2021 7:02 pm
- Forum: General Discussion and Questions
- Topic: Detection of a held button event
- Replies: 17
- Views: 6218
Re: Detection of a held button event
I get a different error message. ' C:/Users/psiadmin/Downloads/micropython-async-master/micropython-async-master/v3/primitives/pushbutton.py) Error: process returned with code 1 ' Is this an issue of compatibility with the RPI Pico? Do you get this message while trying to install something with Tho...
- Wed Jun 02, 2021 5:29 am
- Forum: General Discussion and Questions
- Topic: Detection of a held button event
- Replies: 17
- Views: 6218
Re: Detection of a held button event
This 403 problem is fixed in newer Thonny versions. Unfortunately RPi hasn't updated Thonny in its apt repo yet. I'll ask again about this.
- Mon May 24, 2021 3:09 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: Cannot get access to /dev/ttyACM0
- Replies: 22
- Views: 25388
Re: Cannot get access to /dev/ttyACM0
Thonny 3.1.2 probably comes from the stable Debian repo: https://packages.debian.org/source/stable/thonny You need to first get the new version to the Debian Testing. From https://tracker.debian.org/pkg/thonny you can see that I'm one of the uploaders, but that's misleading -- I can only prepare the...
- Tue May 18, 2021 1:50 pm
- Forum: Programs, Libraries and Tools
- Topic: minipip -- tool for installing both upip and pip compatible packages
- Replies: 3
- Views: 2684
Re: minipip -- tool for installing both upip and pip compatible packages
At the moment this use case doesn't feel important enough to me, so it's rather no.
I now published the tool on GitHub (https://github.com/aivarannamaa/minipip) and PyPI (pip install minipip).
- Mon May 17, 2021 3:40 pm
- Forum: Programs, Libraries and Tools
- Topic: minipip -- tool for installing both upip and pip compatible packages
- Replies: 3
- Views: 2684
minipip -- tool for installing both upip and pip compatible packages
So far Thonny has been using micropip.py by pythoncoder for installing upip-compatible packages to local disk before uploading them to the device. The fact that micropip.py supports only upip-compatible packages, has caused confusion among users, though, as several micropython packages (eg. `micropy...
- Wed May 05, 2021 9:09 pm
- Forum: ESP32 boards
- Topic: Thonny - Boot ESP32 into Python without USB?
- Replies: 1
- Views: 1400
Re: Thonny - Boot ESP32 into Python without USB?
In Thonny you can "Save" or "Save as" your script onto your ESP as main.py or boot.py
You may also want to open the file browser (View => Files), which shows you both local files and the files on the device.
You may also want to open the file browser (View => Files), which shows you both local files and the files on the device.
- Sun May 02, 2021 5:15 am
- Forum: Programs, Libraries and Tools
- Topic: Thonny: view variables and debugging
- Replies: 4
- Views: 6059
Re: Thonny: view variables and debugging
From the screenshot I see that you have stopped your program with Stop/Restart button. This button, besides interrupting the program, does soft reboot for MicroPython's VM. That's why you don't see the globals defined in your program. If you want to simply interrupt your program then use Ctrl+C