Search found 3667 matches

by Roberthh
Mon Feb 08, 2021 1:27 pm
Forum: Raspberry Pi microcontroller boards
Topic: UART Questions
Replies: 6
Views: 3790

Re: UART Questions

At the rp2040 port the invert keyword is not supported. Maybe yet. So you have to use an external inverter. A single 2n7000 transistor + resistor may be sufficient, or a CMOS inverter (e.g. 74hc04). Or you could try one of the PIO examples for UART, where you can control the pin levels yourself.
by Roberthh
Mon Feb 08, 2021 10:13 am
Forum: Programs, Libraries and Tools
Topic: rshell cp command not working on Raspberry Pi Pico with MicroPython installed
Replies: 37
Views: 21996

Re: rshell cp command not working on Raspberry Pi Pico with MicroPython installed

The Ctrl-C catch works on Linux and the board's micropython too. But both on Linux and the boards there is a better way to disable Ctrl-C interrupt. Maybe on Windows too, but I was not in the mood to search deeply. About key codes: I made a small python script for windows to find the keys. It is jus...
by Roberthh
Mon Feb 08, 2021 7:28 am
Forum: General Discussion and Questions
Topic: Compiled modules load time
Replies: 8
Views: 3486

Re: Compiled modules load time

Your compiled modules must be very large if loading from the file system takes several seconds. Are you sure that there is not still the .py version of the module in the files system. That will take preference. Side note: on a SPIRAM device there will also be cache misses for modules loaded to (SPI-...
by Roberthh
Mon Feb 08, 2021 7:23 am
Forum: Pyboard D-series
Topic: Elegant Physical Config for Pyboard D
Replies: 17
Views: 10876

Re: Elegant Physical Config for Pyboard D

Aligning the connectors was also my concern. Not that I even tried to make such a board. But in the way @mathieu did it he could have soldered the connectors while attached to a pyboard D, because he heated up the adapter PCB from the bottom side. That way, the connectors are aligned. The plus side ...
by Roberthh
Mon Feb 08, 2021 7:14 am
Forum: General Discussion and Questions
Topic: Hardware SPI with /SS Suuport
Replies: 7
Views: 2525

Re: Hardware SPI with /SS Suuport

The SPI lib of the W600 chip is doing that automatically. Which is a problem. In addition to the situation @pythoncoder mentioned there are devices where /ss must be kept low through a sequence of commands. So I had to tweak the driver's use to get manual control again without wasting a pin.
by Roberthh
Sun Feb 07, 2021 7:07 pm
Forum: ESP32 boards
Topic: UART causing crash
Replies: 1
Views: 905

Re: UART causing crash

The default UART pin are used on some board for SPI attached memory. In that case using the UART without specifying other pins causes the crash. This has been discussed a few times, but the default pins have not been changed.
by Roberthh
Sun Feb 07, 2021 3:22 pm
Forum: Programs, Libraries and Tools
Topic: rshell cp command not working on Raspberry Pi Pico with MicroPython installed
Replies: 37
Views: 21996

Re: rshell cp command not working on Raspberry Pi Pico with MicroPython installed

@sebi: I made two other changes to mpr.py with respect to repl: Changed code here: https://github.com/robert-hh/Shared-Stuff/blob/master/mpr.py a) Change the function write() in the class ConsolsWindows to: def write(self, buf): if isinstance(buf, bytes): sys.stdout.buffer.write(buf) else: sys.stdou...
by Roberthh
Sun Feb 07, 2021 1:28 pm
Forum: Pyboard D-series
Topic: Doh! Broken USR button!
Replies: 4
Views: 3694

Re: Doh! Broken USR button!

If you still have access to REPL, you can activate the dfu mode with:

import pyb
pyb.bootloader()
by Roberthh
Sun Feb 07, 2021 12:59 pm
Forum: Programs, Libraries and Tools
Topic: rshell cp command not working on Raspberry Pi Pico with MicroPython installed
Replies: 37
Views: 21996

Re: rshell cp command not working on Raspberry Pi Pico with MicroPython installed

@sebi: I added a few more key code translations to mpr.py. Still the problem with Ctrl-C exists. And also other keys which are captured by Windows10 itself are not propagated to mpr.py, like for instance Ctrl-V def readchar(self): if msvcrt.kbhit(): ch = msvcrt.getch() while ch in b"\x00\xe0": # arr...