Access to Gpio on Rock 4 SE under Libreelec?

  • Install the system-tools addon and then you can use libgpiod. It works similar.

    some basic beep script (if you connect a buzzer) - tested at a RPi, the stuff at --usec ... is to convert normal time formats to the required usec, so depending what you trying to use it is not needed at all

    Bash
    #!/bin/sh
    
    set_gpio(){
      gpioset --mode=time --usec="$(TIME=$(echo ${1} 1000000 \* p | dc);echo ${TIME%.*})" gpiochip0 17=1
    }
    
    set_gpio 0.03
  • Hello,

    In radxa-wiki I found how I can switch e.g. Leds etc., I need that later for a fan control.

    Have just other problems.

    Currently I do not know how to start the Rock 4 SE when it is in suspend mode.

    Is there a way to connect a reset button and if so how?

    When it is supposed to record, it wakes up and records, but then stays awake.

    Is it possible to put it back to sleep via script?