Search found 27 matches

by aivarannamaa
Thu Jan 02, 2020 12:04 pm
Forum: Programs, Libraries and Tools
Topic: Does WebREPL have input size limit?
Replies: 2
Views: 117

Re: Does WebREPL have input size limit?

Thank you, Christian! I'll continue the discussion under https://github.com/micropython/micropython/issues/2497
by aivarannamaa
Thu Jan 02, 2020 8:03 am
Forum: Programs, Libraries and Tools
Topic: Does WebREPL have input size limit?
Replies: 2
Views: 117

Does WebREPL have input size limit?

I'm trying to implement WebREPL connection in Thonny IDE ( https://github.com/thonny/thonny/blob/master/thonny/plugins/micropython/webrepl_connection.py ). It is used in raw mode. It is mostly working, but only when I submit small code snippets to the WebREPL. When submitting programs longer than 10...
by aivarannamaa
Mon Dec 09, 2019 10:01 am
Forum: Programs, Libraries and Tools
Topic: Thonny autocomplete issue
Replies: 3
Views: 331

Re: Thonny autocomplete issue

Hi! adzierzanowski recently fixed the shell autocomplete bug in 3.2.4 . I could not reproduce the editor completion problem in 3.2.4. Can you post the code and position where you tried autocomplete? BTW. I recommend reporting this kind of issues right in Thonny's issue tracker -- most likely you'll ...
by aivarannamaa
Thu Nov 28, 2019 7:29 am
Forum: General Discussion and Questions
Topic: Is it possible to remove modules from the import cache?
Replies: 5
Views: 247

Re: Is it possible to remove modules from the import cache?

I think avoiding the risk of extremely confusing behavior due to strange side effects is probably worth the extra time taken for the soft reset. I guess you're right -- automatic soft reset would be good default choice. I didn't remember correctly how fast it is (provided there is nothing time cons...
by aivarannamaa
Tue Nov 26, 2019 5:03 pm
Forum: General Discussion and Questions
Topic: Is it possible to remove modules from the import cache?
Replies: 5
Views: 247

Is it possible to remove modules from the import cache?

Thonny IDE allows testing local scripts on MicroPython devices by sending the code to the REPL. Let's say the code imports a helper module which has been uploaded to the device. Now, if the user uploads a modified version of the helper module, and runs the main script again (by sending it to REPL), ...
by aivarannamaa
Mon Nov 04, 2019 2:03 pm
Forum: Programs, Libraries and Tools
Topic: New version of Thonny IDE
Replies: 7
Views: 1228

New version of Thonny IDE

Hi everybody!

I just released a new version of Thonny IDE with several improvements related to MicroPython: https://github.com/thonny/thonny/releases/tag/v3.2.3

Usage instructions are here: https://github.com/thonny/thonny/wiki/MicroPython

Looking forward to your feedback!

Best regards
Aivar
by aivarannamaa
Thu Oct 31, 2019 8:48 am
Forum: General Discussion and Questions
Topic: Does a serial device know when it is being connected to or read from?
Replies: 4
Views: 358

Re: Does a serial device know when it is being connected to or read from?

Thank you for the reponse! A USB connected MicroPython device draws its power from the interface so when you initially make the USB connection the device starts running. The same garbage happens when I keep the cable connected and only disconnect and reconnect the software. Does this mean the device...
by aivarannamaa
Thu Oct 31, 2019 7:40 am
Forum: General Discussion and Questions
Topic: Does a serial device know when it is being connected to or read from?
Replies: 4
Views: 358

Does a serial device know when it is being connected to or read from?

I'm trying to get better understanding of serial communication. I think I understand the basics (https://learn.sparkfun.com/tutorials/serial-communication/all), but I haven't found an explanation about what happens when a program connects to a device. When I'm connecting to some MicroPython devices ...
by aivarannamaa
Wed Oct 16, 2019 10:51 am
Forum: General Discussion and Questions
Topic: Raw mode and help missing from the Unix port?
Replies: 7
Views: 529

Re: Raw mode and help missing from the Unix port?

How exactly would you use raw REPL on the unix port? Thonny actually does all communication via raw REPL, even evaluation of single expressions. To the user everything looks like regular REPL, though. Thonny's shell would run MicroPython over SSH (or as subprocess when using it in local machine) de...
by aivarannamaa
Tue Oct 15, 2019 8:43 pm
Forum: Other Boards
Topic: NUCLEO-F767ZI Mac OS connection issues
Replies: 1
Views: 347

Re: NUCLEO-F767ZI Mac OS connection issues

Similar issue was reported for my IDE (https://github.com/thonny/thonny/issues/936).

I solved it by flushing the target file after each written block. This can be useful for rshell as well.