Posts by mik_the_mann

    I am trying to set a gpio pin to true while my system is running. The porpuse is that I have an external controller that boots is when my tv is turned on but I need to know if the pi is allready on because otherwise it will do a shutdown.

    I have installed the add on raspberry pi tools but I cant get the gpio to work.

    I have the script.

    Python
    import sys
    sys.path.append('/storage/.kodi/addons/virtual.rpi-tools/lib')
    from gpiozero import LED
    led = LED(17)
    led.on()


    This produces the error


    I Understand that this is because the hardware for rp5 is different but is there a possible method for doing this on the rp5.

    Any help would be greatly appriciated :)