Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add on board LED support #811

Closed
wants to merge 1 commit into from

Conversation

Mani-Sadhasivam
Copy link
Contributor

@Mani-Sadhasivam Mani-Sadhasivam commented Aug 29, 2017

This patch adds support for using on board LED through sysfs.
Commonly available LED parameters are supported.

Signed-off-by: Manivannan Sadhasivam manivannan.sadhasivam@linaro.org

@arfoll arfoll self-requested a review August 29, 2017 08:30
Copy link
Contributor

@arfoll arfoll left a comment

Choose a reason for hiding this comment

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

Generally looks very good, a few things need adding before merge:

  1. Needs a _close() function for the context
  2. Needs C++ API, and checking that SWIG APIs generated make sense
  3. It would be nice to create the table of 'what' LEDs are available on mraa_init() so that it can be queried, rather than guessing if it's there on mraa_led_init. This can probably be added after though.

This patch adds support for using on board LED through sysfs.
Commonly available LED parameters are supported.

Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
@Mani-Sadhasivam
Copy link
Contributor Author

Mani-Sadhasivam commented Aug 30, 2017

@arfoll I've updated the PR with following changes:

  1. Added close() api
  2. Added C++ binding

I have left LED table as of now. Will add it once this PR gets in

@Propanu
Copy link
Contributor

Propanu commented Sep 13, 2017

@arfoll this looks good to me now and it would be a great addition for the next tagged version of mraa.

@arfoll
Copy link
Contributor

arfoll commented Oct 19, 2017

Merged, thanks!

@arfoll arfoll closed this Oct 19, 2017
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.

None yet

3 participants