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

Expand the rpi_gpio component to support orangepi as well. #19732

Closed
wants to merge 7 commits into from

Commits on Jan 15, 2019

  1. Expand the rpi_gpio library to support orangepi as well.

    Instead of adding a new component for orangepi (which is a
    raspberry pi clone), let's just extend the existing component
    to support more than one family of boards.
    
    I have tested this patch on a raspberry pi 3 and an orangepi
    prime, in both cases with a LED on a GPIO controlled switch.
    Note that the orangepi GPIO library requires access to /dev/mem,
    which I have resolved for now by running Home Assistant as root.
    mikalstill committed Jan 15, 2019
    Copy the full SHA
    9645b48 View commit details
    Browse the repository at this point in the history
  2. Attempt to fix linter style nags

    M0les authored and mikalstill committed Jan 15, 2019
    Copy the full SHA
    cf5939e View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    4f871ae View commit details
    Browse the repository at this point in the history
  4. Remove globals and use hass.data instead.

    Per review comments on PR home-assistant#19732.
    mikalstill committed Jan 15, 2019
    Copy the full SHA
    05067f7 View commit details
    Browse the repository at this point in the history
  5. Move to a different OrangePi GPIO library

    This library doesn't require root or access to /dev/mem because
    it uses the sysfs interface for GPIOs instead. It also doesn't
    need to know what OrangePi board you're using, so the configuration
    is simpler.
    mikalstill committed Jan 15, 2019
    Copy the full SHA
    a8c320b View commit details
    Browse the repository at this point in the history
  6. Move to SUNXI pin naming for OrangePI.

    Its much less confusing, given there are two competing numbering
    schemes.
    mikalstill committed Jan 15, 2019
    Copy the full SHA
    d259d91 View commit details
    Browse the repository at this point in the history
  7. Copy the full SHA
    8fcfeb2 View commit details
    Browse the repository at this point in the history