pybricksdev icon indicating copy to clipboard operation
pybricksdev copied to clipboard

Add USB support

Open nkarstens opened this issue 2 years ago • 7 comments

Adds USB support in concert with pybricks/pybricks-micropython#208

nkarstens avatar Nov 13 '23 11:11 nkarstens

@dlech This adds enough functionality to push programs. I'm still working on receiving data from the device.

nkarstens avatar Nov 25 '23 14:11 nkarstens

I added a branch with a few more changes here: https://github.com/pybricks/pybricksdev/tree/dlech-usb

dlech avatar Nov 27 '23 00:11 dlech

@dlech This now processes stdout and status messages. Marking as ready for review.

nkarstens avatar Dec 05 '23 05:12 nkarstens

Cool! It will probably be a few weeks before I can have a close look.

dlech avatar Dec 06 '23 03:12 dlech

New patchset using transport composition class. Still uses UUIDs instead of separate endpoints.

nkarstens avatar Jan 07 '24 00:01 nkarstens

64931654e1fa563233f5434db114831b1d4c5858 is going to be a disruptive breaking change. I agree it is better to do things in the constructor but I am undecided if it is that much better that it is worth breaking people's programs.

Edit: after reviewing the code and seeing how many projects on GitHub are using pybricksdev, I'm thinking it would be best not to make this particular change.

dlech avatar Jan 07 '24 19:01 dlech

Waiting for command responses now works. I need to clean up the pybricks-micropython code a bit and will then push that up.

nkarstens avatar Feb 18 '24 13:02 nkarstens