Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: GPIO on SUNXI H3



Jared McNeill <jmcneill%invisible.ca@localhost> wrote:
>   sunxi# sysctl hw.led
>   hw.led.orangepi_green_pwr = 1
>   hw.led.orangepi_red_status = 0
>   sunxi# sysctl -w hw.led.orangepi_red_status=1
>   hw.led.orangepi_red_status: 0 -> 1
>   sunxi# sysctl hw.led
>   hw.led.orangepi_green_pwr = 1
>   hw.led.orangepi_red_status = 1

Hi,

I wonder if there is a similar interface (or any) for the on board
button.  It is defined in the dtb just as the leds are and the kernel
seems to recognize it:

  gpiokeys0 at fdt0: sw4

cheers
sascha


Home | Main Index | Thread Index | Old Index