Skip to content

Commit 6616307

Browse files
committed
Fix up errors in previous merge
- Fix ratio in LED color for yellow on EV3 - Add missing BLACK color for rPi
1 parent 4aae817 commit 6616307

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
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: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,12 @@ 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, )
6162
ORANGE = ( 1, 0.5, )
62-
YELLOW = ( 0.5, 1, )
63+
YELLOW = ( 0.1, 1, )
6364

6465
@staticmethod
6566
def set_color(group, color, pct=1):

0 commit comments

Comments
 (0)