virantha / bricknil

Control LEGO Bluetooth Sensors and Motors with Python
https://virantha.github.io/bricknil
Apache License 2.0
142 stars 39 forks source link

MicroPython support? #34

Open DrewzyMack opened 9 months ago

DrewzyMack commented 9 months ago

Hi, I feel liike this might be a bit of an ask, but I was hoping to get this or a similar package working on a Raspberry Pi Pico, and realised a little late that this isn't really for MicroPython.

Does anyone have any information about how I might get that working, if there's an alternative, or any suggestions at all.

Mainly hoping to get my lego train to be able to respond to basic commands from a pico at the "train station"

gbit-is commented 8 months ago

I started trying to get a duplo train working on pi pico w running micropython, I can connect to it but I can't issue any commands (I have never worked with bluetooth and am not really sure how to do that)

If anyone with a better understanding of bluetooth want's to take a shot at this, then here is code that pairs to the train and connects to the service

https://gist.github.com/gbit-is/a1c16c9dd50aad4835ee281e2a929703