Jump to content

Recommended Posts

Posted
Armbianmonitor:

hello there, and Happy New Year

I have OPI PC PLUS, and it was unused for a while , then I did update upgrade it and since this time my old python scripts doesn't work at all

it looks like scripts turn on  OK but nothen happend

 

I use OrangePi.GPIO 0.6.3

Posted

actually doesn't work python script like this:

 

import time
import OPi.GPIO as GPIO

GPIO.setboard(GPIO.PCPCPLUS)    # Orange Pi PC board
GPIO.setmode(GPIO.BCM)

RELAIS_1_GPIO = 20
GPIO.setup(RELAIS_1_GPIO, GPIO.OUT) # GPIO Assign mode
GPIO.output(RELAIS_1_GPIO, GPIO.LOW) # out
GPIO.output(RELAIS_1_GPIO, GPIO.HIGH) # on

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines