Posts by directandrew

    Hi Guys, new to LibreELEC but using OpenELEC and Kodi for years now.

    Looking to move over to LibreELEC but have a question on Rpi3 and GPIO control.

    1) Does the base build of LibreELEC have RPi.GPIO support built in or do i need to find a addin like this RPI GPIO BUT a LibreELEC repo.

    2) If not, basically just need to run a simple task as shown below which turns my power Amp on and off if Kodi is left on for more than 10mins (this code is triggered from a more complex custom python script I have running, but out of scope for now)

    Thanks again and sorry if this is already covered. There were a lot of hits in the search for GPIO, but dealing with a config.txt file? not sure if that works for me...

    AG

    Code
    import RPi.GPIO as GPIO
    GPIO.setmode(GPIO.BCM)
    ch23 = 23
    GPIO.setup(ch23, GPIO.OUT)
    GPIO.output(ch23, True)
    print "Set pin High"