David Lechner

Results 1570 comments of David Lechner

We have a [#lego-and-pybricks](https://discord.com/channels/574275045187125269/1040529544202952734) channel already on the MicroPython Discord. You are welcome to join us there. https://discord.gg/mAj7NKhgWe

How about something like this? ```python import asyncio import platform import sys try: import msvcrt except ModuleNotFoundError: pass try: import termios import tty except ModuleNotFoundError: pass from pybricksdev.connections.pybricks import PybricksHub,...

I have tested my code on both Windows and Linux with the the following substitute for `robot_Blast.py`: ```python import usys from pybricks import version print('hub program started') print(version) while True:...

It looks like there is a possible problem with the way waiting for a user program running works in `pybricksdev`. I just published v1.0.0-alpha.27 with an increased timeout that may...

> It is about 2600 lines of Python code. :open_mouth: That's pretty big.

A perhaps simpler workaround is to run `asdf shell ruby system` instead of manually manipulating the `PATH` variable. > That Variable is set to `/home//.asdf/shims/ruby --disable=gems` which seems somewhat reasonable...

Even better workaround: ``` RUBY_CONFIGURE_OPTS="--with-baseruby=/usr/bin/ruby" asdf install ``` You can use `type -a ruby` to find installed versions if `/usr/bin/ruby` isn't available.

What operating system/version are you using? What Bluetooth adapter are you using? Also see https://github.com/orgs/pybricks/discussions/270 for more in-depth troubleshooting tips.

Not all Bluetooth adapters are compatible. See https://github.com/pybricks/support/issues/921. Also see https://github.com/orgs/pybricks/discussions/270 for more in-depth troubleshooting tips.

One thing to consider here is that Bleak is doing active scanning. So this should probably come with a warning that if you leave the script running a long time,...