Skip to content

Commit 7d09662

Browse files
committed
Add a led constant for black.
This way we can avoid doing ev3.Leds.set_color(ev3.Leds.RIGHT, (0,0)) which is hard to discover.
1 parent 83da801 commit 7d09662

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

ev3dev/brickpi.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ class Leds(object):
5353
LED1 = ( blue_led1, )
5454
LED2 = ( blue_led2, )
5555

56+
BLACK = ( 0, )
5657
BLUE = ( 1, )
5758

5859
@staticmethod

ev3dev/ev3.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ class Leds(object):
5555
LEFT = ( red_left, green_left, )
5656
RIGHT = ( red_right, green_right, )
5757

58+
BLACK = ( 0, 0, )
5859
RED = ( 1, 0, )
5960
GREEN = ( 0, 1, )
6061
AMBER = ( 1, 1, )

0 commit comments

Comments
 (0)