-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Any plans for adding other hubs, maybe Mindstorms 515151? #118
Comments
Hello, Anyone with access to that hub can contribute it. It will be pretty much copying the code of I can be an advisor in that process. |
Wow, thanks. |
Very useful is to collect whatever Hub reports itself. Here's my script to do that: import json
import time
import unittest
from pylgbst.hub import MoveHub
from tests import log
class GeneralTest(unittest.TestCase):
def setUp(self):
super(GeneralTest, self).setUp()
self.hub = MoveHub()
time.sleep(2)
log.debug("Created hub: %s", self.hub)
log.warning("\n\n\n")
def _describe(self):
descr = {}
for dev in self.hub.peripherals.values():
descr[str(dev)] = dev.describe_possible_modes()
with open("descr.json", "w") as fhd:
json.dump(descr, fhd, indent=True) |
What worked for me is to use If you’d help me to build up a bluetooth connection to the new Hub that creates a serial port like Do you know how to create a serial connection to a bluetooth connected device? |
Wow, that's a bit complex for me with the With PoweredUP hubs, usually you can take the Hope that helps you somehow. |
Are there any plans for adding other hubs,
especially Mindstorms 515151??
Thank you!
The text was updated successfully, but these errors were encountered: