Skip to content

Commit b691013

Browse files
committed
Update the binding and template to account for change of port-name to address - see ev3dev/lego-linux-driversi@37ad261d25ccab7ee24276d16fc83cc38b85fb65
1 parent a1df679 commit b691013

File tree

3 files changed

+57
-61
lines changed

3 files changed

+57
-61
lines changed

ev3dev/brickpi.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ class Leds(object):
4747

4848
# ~autogen led-colors platforms.brickpi.led>currentClass
4949

50-
blue_one = Led(name='brickpi1:blue:ev3dev')
51-
blue_two = Led(name='brickpi2:blue:ev3dev')
50+
blue_led1 = Led(name='brickpi1:blue:ev3dev')
51+
blue_led2 = Led(name='brickpi2:blue:ev3dev')
5252

53-
BLUE_ONE = ( blue_one, )
54-
BLUE_TWO = ( blue_two, )
53+
LED1 = ( blue_led1, )
54+
LED2 = ( blue_led2, )
5555

5656
BLUE = ( 1, )
5757

@@ -87,8 +87,8 @@ def all_off():
8787
"""
8888
Turn all leds off
8989
"""
90-
Leds.blue_one.brightness = 0
91-
Leds.blue_two.brightness = 0
90+
Leds.blue_led1.brightness = 0
91+
Leds.blue_led2.brightness = 0
9292

9393

9494
# ~autogen

0 commit comments

Comments
 (0)