minimal changes needed for Tx to work on Pi 4

pull/138/head
alanbjohnston 4 years ago committed by GitHub
parent 8b23ded161
commit 7efc2b05bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -44,15 +44,10 @@ else:
# GPIO.setup(txLed, GPIO.OUT) # GPIO.setup(txLed, GPIO.OUT)
# output(txLed, txLedOff) # output(txLed, txLedOff)
GPIO.setmode(GPIO.BCM) GPIO.setmode(GPIO.BCM) # Repeat to make LED work on Pi 4
GPIO.setwarnings(False) GPIO.setwarnings(False)
GPIO.setup(txLed, GPIO.OUT) GPIO.setup(txLed, GPIO.OUT)
output(txLed, txLedOn)
sleep(1)
output(txLed, txLedOff)
sleep(1)
output(txLed, txLedOn) output(txLed, txLedOn)
sleep(1) sleep(1)
output(txLed, txLedOff) output(txLed, txLedOff)

Loading…
Cancel
Save

Powered by TurnKey Linux.