You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the boostc lib there was a property OUTPUT_A, which would return 'outA' on an Ev3 but the literal /dev path on a Brickpi, something with TTY. What is an elegant way of filling this property on ev3dev?
I'm not sure - what I do in my sample code is m = Motor('outA') and it "just works". You can always get the full path of the device like this print( m.port_name )
Activity
rhempel commentedon Oct 6, 2015
I'm not sure - what I do in my sample code is
m = Motor('outA')and it "just works". You can always get the full path of the device like thisprint( m.port_name )antonvh commentedon Oct 7, 2015
I use this now, which works fine cross platform:
m = Motor(name="motor0")