Skip to content

Fix leds documentation - #124

Merged
rhempel merged 2 commits into
ev3dev:developfrom
ddemidov:issue-123
Feb 9, 2016
Merged

rhempel merged 2 commits into
ev3dev:developfrom
ddemidov:issue-123

Conversation

@ddemidov

Copy link
Copy Markdown
Member

Fixes #123

@ensonic

ensonic commented Jan 21, 2016

Copy link
Copy Markdown
Contributor

I just noticed that we do have ev3.Led and ev3.Leds. Are you adding both?

>>> dir(ev3.Led)
['DEVICE_ROOT_PATH', 'SYSTEM_CLASS_NAME', 'SYSTEM_DEVICE_NAME_CONVENTION', '_DEVICE_INDEX', '__class__', '__delattr__', '__dict__', '__doc__', '__format__', '__getattribute__', '__hash__', '__init__', '__module__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_get_attribute', '_matches', '_set_attribute', 'brightness', 'brightness_pct', 'delay_off', 'delay_on', 'device_index', 'get_attr_from_set', 'get_attr_int', 'get_attr_line', 'get_attr_set', 'get_attr_string', 'max_brightness', 'set_attr_int', 'set_attr_string', 'trigger', 'triggers']
>>> dir(ev3.Leds)
['AMBER', 'GREEN', 'LEFT', 'ORANGE', 'RED', 'RIGHT', 'YELLOW', '__class__', '__delattr__', '__dict__', '__doc__', '__format__', '__getattribute__', '__hash__', '__init__', '__module__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', 'all_off', 'green_left', 'green_right', 'red_left', 'red_right', 'set', 'set_color']

@ddemidov

Copy link
Copy Markdown
Member Author

ev3dev.core.Led is a single Led, and ev3dev.<platform>.Leds defines platform-specific led groups and colors.

rhempel added a commit that referenced this pull request Feb 9, 2016
@rhempel
rhempel merged commit 0e7f3f8 into ev3dev:develop Feb 9, 2016
@ddemidov
ddemidov deleted the issue-123 branch February 10, 2016 03:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants