|
|
|
|
@ -189,10 +189,13 @@ try:
|
|
|
|
|
GPIO.setwarnings(False)
|
|
|
|
|
GPIO.setup(13, GPIO.IN, pull_up_down=GPIO.PUD_UP)
|
|
|
|
|
GPIO.setup(12, GPIO.IN, pull_up_down=GPIO.PUD_UP)
|
|
|
|
|
GPIO.setup(27, GPIO.IN, pull_up_down=GPIO.PUD_UP)
|
|
|
|
|
GPIO.setup(txc_pin, GPIO.IN, pull_up_down=GPIO.PUD_UP)
|
|
|
|
|
GPIO.setup(green, GPIO.OUT)
|
|
|
|
|
GPIO.output(powerPin, 1)
|
|
|
|
|
except:
|
|
|
|
|
print("GPIO setup problem")
|
|
|
|
|
try:
|
|
|
|
|
GPIO.setup(27, GPIO.IN, pull_up_down=GPIO.PUD_UP)
|
|
|
|
|
except:
|
|
|
|
|
print("Can't set txLed")
|
|
|
|
|
|
|
|
|
|
|