Search found 171 matches

by aivarannamaa
Sat Jul 24, 2021 3:23 pm
Forum: Programs, Libraries and Tools
Topic: Adding scripts and libraries to Board
Replies: 10
Views: 4470

Re: Adding scripts and libraries to Board

I see that you have started your quest here: viewtopic.php?f=15&t=10852

The question Jimmo asked is crucial. I recommend you continue in that thread. Jimmo certainly knows more about this.
by aivarannamaa
Fri Jul 23, 2021 8:25 pm
Forum: Programs, Libraries and Tools
Topic: Adding scripts and libraries to Board
Replies: 10
Views: 4470

Problem writing files with Zephyr port

I haven't used Zephyr port myself, but I suspect your flash or filesystem might be misconfigured. I changed the subject of this thread - maybe someone else can recommend something.

BTW. Which device are you using?
by aivarannamaa
Fri Jul 23, 2021 6:26 pm
Forum: Programs, Libraries and Tools
Topic: Adding scripts and libraries to Board
Replies: 10
Views: 4470

Re: Adding scripts and libraries to Board

I now noticed your message in Thonny's forum. I'm replying here, because this forum is more relevant. It looks like Thonny is trying to write modules into the root directory of your device and fails to do so (Errno 19 ENODEV). Please tell me more information about your device -- sys.path, current di...
by aivarannamaa
Fri Jul 23, 2021 6:14 pm
Forum: Programs, Libraries and Tools
Topic: Adding scripts and libraries to Board
Replies: 10
Views: 4470

Re: Adding scripts and libraries to Board

If you are able to connect to this board in Thonny, then you should be able to use it for installing packages as well (Tools => Manage packages). Thonny would use it's own internet connection for downloading the packages and serial connection for uploading to the device.

Have you tried it?
by aivarannamaa
Fri Jul 23, 2021 6:56 am
Forum: General Discussion and Questions
Topic: Non-ascii chars of the input get ignored
Replies: 3
Views: 2272

Non-ascii chars of the input get ignored

I observed a weird behavior on Pico -- when the program calls input() and I'm entering non-ascii characters, these chars are not echoed and don't make it to the interpreter. In order to rule out issues with the serial terminal program, I experimented with Pyserial: import serial s = serial.Serial("/...
by aivarannamaa
Tue Jul 13, 2021 4:04 pm
Forum: Programs, Libraries and Tools
Topic: µPIDE a new IDE for beginners
Replies: 38
Views: 23733

Re: µPIDE a new IDE for beginners

About projects -- most beginner projects consist of a single file. If I were teaching MicroPython µPIDE, I would advise to save different "projects" as separate py files on the device, with file name being the project name. The run button would run the current file. For fixing a specific project as ...
by aivarannamaa
Tue Jul 13, 2021 3:31 pm
Forum: Programs, Libraries and Tools
Topic: Porting a library from Circuitpython
Replies: 7
Views: 3276

Re: Porting a library from Circuitpython

Don't know if it is related, but in your zip you have file named "__init__" inside the package folder, but package marker should be named "__init__.py"
by aivarannamaa
Sun Jul 11, 2021 4:45 pm
Forum: Raspberry Pi microcontroller boards
Topic: AttributeError: 'RTC' object has no attribute 'init' WARNING: Could not sync device's clock: 'RTC' object has no attribu
Replies: 10
Views: 5705

Re: AttributeError: 'RTC' object has no attribute 'init' WARNING: Could not sync device's clock: 'RTC' object has no att

MicroPython 1.15 acccepted 7 for Sunday, when synchronizing RTC (which Thonny assumed up to 3.3.10), MicroPython 1.16 does not, therefore Thonny received error and tried alternative approach (some devices have RTC.init) The solution is to upgrade Thonny to 3.3.11. If you can't (RPi-s apt repo doesn'...
by aivarannamaa
Thu Jul 08, 2021 5:55 pm
Forum: Programs, Libraries and Tools
Topic: µPIDE a new IDE for beginners
Replies: 38
Views: 23733

Re: µPIDE a new IDE for beginners

Looks really nice! I love how not supporting local files allowed you to simplify the UI and how the small filesystem of a MicroPython device makes things so much easier. It really is much more suitable for kids than Thonny (and even Mu). There's one thing not apparent from the screenshot -- how does...
by aivarannamaa
Fri Jun 11, 2021 8:21 pm
Forum: ESP8266 boards
Topic: New to MicroPython, putty showing garbage chars
Replies: 46
Views: 21780

Re: New to MicroPython, putty showing garbage chars

I've heard that a phase of ESP start-up outputs data with a baud rate different from the usual 115200. I think the best you can do is simply ignore this part of the output.