Update transmit.py ptt gpio not RPI.GPIO

master-b-p-s
Alan Johnston 3 weeks ago committed by GitHub
parent 30ee1b7b51
commit 3a7ece7c1a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -15,7 +15,7 @@ import random
import subprocess import subprocess
def output(pin, value): def output(pin, value):
if (pin != 20): if (pin != 30):
command = "gpio -g write " + str(pin) + " " + str(value) command = "gpio -g write " + str(pin) + " " + str(value)
system(command) system(command)
print(command) print(command)
@ -40,7 +40,7 @@ def input(pin):
def setup(pin, config): def setup(pin, config):
if config == "in" or config == "out" or config == "up" or config == "down": if config == "in" or config == "out" or config == "up" or config == "down":
if (pin != 20): if (pin != 30):
command = "gpio -g mode " + str(pin) + " " + config command = "gpio -g mode " + str(pin) + " " + config
system(command) system(command)
print(command) print(command)

Loading…
Cancel
Save

Powered by TurnKey Linux.