175 """Configure the port mode"""
176 GPIO.setmode(GPIO.BCM)
177 GPIO.setwarnings(
False)
179 if (register_data[
'output'] == -1):
180 GPIO.setup(register_data[
'pin'], GPIO.IN)
181 print(GPIO.input(register_data[
'pin']))
183 if (register_data[
'output'] != -1):
184 GPIO.setup(register_data[
'pin'], GPIO.OUT)
185 GPIO.output(register_data[
'pin'], register_data[
'output'])