Search found 119 matches

by aivarannamaa
Mon Apr 19, 2021 11:19 am
Forum: Raspberry Pi microcontroller boards
Topic: program controlled REPL ?
Replies: 4
Views: 166

Re: program controlled REPL ?

You could wrap the whole program into a function, eg. main, so in order to go to the REPL the program would simply return and in order to resume, you would execute main() on the REPL.

Alternatively, you could create a simple REPL inside your own code and exec the code provided by the user.
by aivarannamaa
Mon Apr 19, 2021 11:15 am
Forum: Raspberry Pi microcontroller boards
Topic: Pico start warning
Replies: 2
Views: 135

Re: Pico start warning

The warning should go away with latest Thonny (3.3.6).

Don't know anything about the USB driver problem.
by aivarannamaa
Fri Apr 09, 2021 11:54 am
Forum: General Discussion and Questions
Topic: pyboard issue from jetson nano to LEGO 51515
Replies: 4
Views: 139

Re: pyboard issue from jetson nano to LEGO 51515

I don't have this device myself, but a Thonny user also reported problems with it and the error message was somewhat similar (https://github.com/thonny/thonny/issues/1702). Perhaps LEGO's MicroPython has some quirks. I'd be happy if you tried connecting to your hub via Thonny (https://thonny.org): *...
by aivarannamaa
Wed Mar 24, 2021 10:30 am
Forum: MicroPython pyboard
Topic: How to set Thonny?
Replies: 1
Views: 174

Re: How to set Thonny?

It looks like your Thonny is in "Heap mode", which is a mode for demonstrating references.

You can turn it off by unselecting "Heap" from the "View" menu.
by aivarannamaa
Sun Mar 21, 2021 6:56 am
Forum: Raspberry Pi microcontroller boards
Topic: asm_pio error when working in Thonny - Shell
Replies: 2
Views: 285

Re: asm_pio error when working in Thonny - Shell

It looks like Thonny's bug. Please report it at https://github.com/thonny/thonny/issues/new and let's continue our discussion there. Also, please tell your OS, whether you are able to run some other programs and whether you can evaluate expressions in the Shell.
by aivarannamaa
Wed Mar 17, 2021 7:40 am
Forum: Raspberry Pi microcontroller boards
Topic: Cannot get access to /dev/ttyACM0
Replies: 11
Views: 1139

Re: Cannot get access to /dev/ttyACM0

@garnold, which distro and which version are you using? Please also tell your screen resolution You could try different font scaling mode at "Tools => Options => General". Please let me know, whether you had success or not. I've seen such reports before (https://github.com/thonny/thonny/issues/1113)...
by aivarannamaa
Fri Mar 12, 2021 7:30 am
Forum: Raspberry Pi microcontroller boards
Topic: Cannot get access to /dev/ttyACM0
Replies: 11
Views: 1139

Re: Cannot get access to /dev/ttyACM0

From the screenshot I see that you have older Thonny, which doesn't know about Pico. The "MicroPython (generic)" back-end together with the port it's showing, should work, though. If you want newer Thonny, then you can `apt remove thonny` and install a Thonny+Python bundle with following command: ba...
by aivarannamaa
Thu Mar 11, 2021 8:15 am
Forum: Raspberry Pi microcontroller boards
Topic: Problem using 2 identical delays (with sleep()) in main & in thread
Replies: 1
Views: 403

Re: Problem using 2 identical delays (with sleep()) in main & in thread

I have also met problems with Pico threads (https://github.com/micropython/micropython/issues/6899), so I suspect the threading support isn't very robust yet. When you are testing different parameters, then make sure you hard reset your device between tests. I've been scratching my head a lot by alt...
by aivarannamaa
Thu Mar 11, 2021 8:09 am
Forum: Raspberry Pi microcontroller boards
Topic: main.py isn't running when Pico connected to external power
Replies: 6
Views: 969

Re: main.py isn't running when Pico connected to external power

ssfel wrote:
Mon Mar 08, 2021 10:25 am
At the moment I'm doing;
Save As --> Raspberry Pi Pico --> "main.py", save
This should do.

Does it start running again when you reconnect USB? Can it be powering issue?
by aivarannamaa
Thu Mar 11, 2021 7:51 am
Forum: Raspberry Pi microcontroller boards
Topic: Cannot get access to /dev/ttyACM0
Replies: 11
Views: 1139

Re: Cannot get access to /dev/ttyACM0

@garnold, do I understand correctly that `/dev/ttyACM0` is present but Thonny simply doesn't see it? Please select the default back-end in Thonny (button at the lower-right corner) and try following commands on the Python 3 REPL: Python 3.7.9 (bundled) >>> import serial.tools.list_ports as lp >>> lp...