Skip to content

Commit 6f835c9

Browse files
ddemidovrhempel
authored andcommitted
Update demo files to use address instead of port
1 parent 75b3225 commit 6f835c9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

demo/auto-drive.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
from ev3dev.auto import *
3838

3939
# Connect two large motors on output ports B and C:
40-
motors = [LargeMotor(port) for port in (OUTPUT_B, OUTPUT_C)]
40+
motors = [LargeMotor(address) for address in (OUTPUT_B, OUTPUT_C)]
4141

4242
# Every device in ev3dev has `connected` property. Use it to check that the
4343
# device has actually been connected.

demo/remote-control.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
from ev3dev.auto import *
3434

3535
# Connect two large motors on output ports B and C
36-
lmotor, rmotor = [LargeMotor(port) for port in (OUTPUT_B, OUTPUT_C)]
36+
lmotor, rmotor = [LargeMotor(address) for address in (OUTPUT_B, OUTPUT_C)]
3737

3838
# Check that the motors are actually connected
3939
assert lmotor.connected

0 commit comments

Comments
 (0)