ev3dev / ev3dev-lang

(deprecated) language bindings for ev3dev sensors, motors, LEDs, etc.
GNU General Public License v2.0
56 stars 39 forks source link

Update python binding #140

Closed rhempel closed 8 years ago

rhempel commented 8 years ago

Python binding - change name of optional port parameter to address

rhempel commented 8 years ago

Next time I'll squash the commits. @ensonic and @ddemidov - this is a breaking change if you use the port parameter when creating sensor or motor devices. The parameter name is now address

WasabiFan commented 8 years ago

I am going to refrain from the laughter :wink: and just say that this looks good to me. Feel free to merge when desired.

ensonic commented 8 years ago

What if I don't use the named parameter, but:

 motor=ev3.LargeMotor(port)
ddemidov commented 8 years ago

That works without changes.