Power Led is on.
Nothing happens when I press the power button. I did run this piece of code
import RPi.GPIO as GPIO
import time
import os
GPIO.setwarnings(False)
GPIO.setmode(GPIO.BCM)
GPIO.setup(23, GPIO.IN)
state = GPIO.input(23)
GPIO.setup(17, GPIO.IN)
pin17 = GPIO.input(17)
if (state):
print('Radio is Off')
else:
print('Radio is On')
if (pin17):
print('Radio is enabled')
else:
print('Radio is not enabled')
print("trying to enable")
GPIO.setup(17, GPIO.OUT)
GPIO.output(17, GPIO.LOW)
GPIO.setup(17, GPIO.IN)
pin17 = GPIO.input(17)
if(pin17):
print("radio is now enabled")
else:
print("radio is still disabled")
exit(0)
And the radio wouldn’t turn on. But then when I presser power for 2 seconds it worked.
And all my scripts to turn it on and send messages are working now.