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

Controlling 2 Train motors in a hub #28

Open seanMurr opened 3 years ago

seanMurr commented 3 years ago

I can't see any way to connect 2 train motors to a hub. There appears to be no way of controlling the A and B port individually. I have train engines that have 2 motors each and the motors point in opposite directions. This means that both motors would need to be controlled individually so that when motorA is set to 50 motorB could then be set to -50 and vise versa.