Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
python-ev3dev2 (2.0.0~beta4) UNRELEASED; urgency=medium

[Daniel Walton]
* LED animation support, brickpi3 LED corrected from BLUE to AMBER
* Sound: fallback to regular case of 'note' if uppercase is not found
* wait_until_not_moving should consider "running holding" as "moving"

Expand Down
2 changes: 2 additions & 0 deletions ev3dev2/_platform/brickpi.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,5 @@
LED_COLORS = OrderedDict()
LED_COLORS['BLACK'] = (0,)
LED_COLORS['BLUE'] = (1,)

LED_DEFAULT_COLOR = 'BLUE'
8 changes: 5 additions & 3 deletions ev3dev2/_platform/brickpi3.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,13 @@
EVDEV_DEVICE_NAME = None

LEDS = OrderedDict()
LEDS['blue_led'] = 'led0:blue:brick-status'
LEDS['amber_led'] = 'led1:amber:brick-status'

LED_GROUPS = OrderedDict()
LED_GROUPS['LED'] = ('blue_led',)
LED_GROUPS['LED'] = ('amber_led',)

LED_COLORS = OrderedDict()
LED_COLORS['BLACK'] = (0,)
LED_COLORS['BLUE'] = (1,)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are the LEDs actually amber and we've been calling them blue?

This change probably should show up as a changelog entry as well.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah it is actually amber...not sure how we goofed that up way back when. Will update the changelog.

LED_COLORS['AMBER'] = (1,)

LED_DEFAULT_COLOR = 'AMBER'
2 changes: 2 additions & 0 deletions ev3dev2/_platform/ev3.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,5 @@
LED_COLORS['AMBER'] = (1, 1)
LED_COLORS['ORANGE'] = (1, 0.5)
LED_COLORS['YELLOW'] = (0.1, 1)

LED_DEFAULT_COLOR = 'GREEN'
1 change: 1 addition & 0 deletions ev3dev2/_platform/evb.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@
LEDS = {}
LED_GROUPS = {}
LED_COLORS = {}
LED_DEFAULT_COLOR = ''
1 change: 1 addition & 0 deletions ev3dev2/_platform/fake.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@
LEDS = {}
LED_GROUPS = {}
LED_COLORS = {}
LED_DEFAULT_COLOR = ''
8 changes: 5 additions & 3 deletions ev3dev2/_platform/pistorms.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
LED_COLORS['RED'] = (1, 0, 0)
LED_COLORS['GREEN'] = (0, 1, 0)
LED_COLORS['BLUE'] = (0, 0, 1)
LED_COLORS['YELLOW'] = (1, 1, 0)
LED_COLORS['CYAN'] = (0, 1, 1)
LED_COLORS['MAGENTA'] = (1, 0, 1)
LED_COLORS['YELLOW'] = (1, 1, 0)
LED_COLORS['CYAN'] = (0, 1, 1)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What changed here? I'm confused...

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't spot a delta either. git appears to have lost its mind on these two lines. The MAGENTA line below had a newline added but the YELLOW and CYAN lines look identical to before to me.

@ddemidov ddemidov Mar 28, 2019 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The difference on the YELLOW line is that there was a trailing whitespace.
The difference on the CYAN line that it misses the EOL symbol now.
Same applies to CYAN line (removed trailing whitespace).

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Normally github will show the trailing whitespace in the diff...they must have changed something

LED_COLORS['MAGENTA'] = (1, 0, 1)

LED_DEFAULT_COLOR = 'GREEN'
Loading