Skip to content

Commit

Permalink
fix ex4
Browse files Browse the repository at this point in the history
  • Loading branch information
oclyke committed Mar 5, 2021
1 parent f89f348 commit 7981e74
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions examples/qwiic_gpio_ex4.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,23 +78,23 @@ def runExample():
myGPIO.setInversion()

while True:
myGPIO.getGPIO() # This function updates each in_status_x variable
print("GPIO 0:", end=" ")
print(myGPIO.in_status_0 = myGPIO.GPIO_LO, end=" ")
print("GPIO 1:", end=" ")
print(myGPIO.in_status_1 = myGPIO.GPIO_LO, end=" ")
print("GPIO 2:", end=" ")
print(myGPIO.in_status_2 = myGPIO.GPIO_LO, end=" ")
print("GPIO 3:", end=" ")
print(myGPIO.in_status_3 = myGPIO.GPIO_LO, end=" ")
print("GPIO 4:", end=" ")
print(myGPIO.in_status_4 = myGPIO.GPIO_LO, end=" ")
print("GPIO 5:", end=" ")
print(myGPIO.in_status_5 = myGPIO.GPIO_LO), end=" "
print("GPIO 6:", end=" ")
print(myGPIO.in_status_6 = myGPIO.GPIO_LO, end=" ")
print("GPIO 7:", end=" ")
print(myGPIO.in_status_7 = myGPIO.GPIO_LO)
myGPIO.getGPIO() # This function updates each in_status_x variable
print("GPIO 0:", end=" ")
print(myGPIO.in_status_0 == myGPIO.GPIO_LO, end=" ")
print("GPIO 1:", end=" ")
print(myGPIO.in_status_1 == myGPIO.GPIO_LO, end=" ")
print("GPIO 2:", end=" ")
print(myGPIO.in_status_2 == myGPIO.GPIO_LO, end=" ")
print("GPIO 3:", end=" ")
print(myGPIO.in_status_3 == myGPIO.GPIO_LO, end=" ")
print("GPIO 4:", end=" ")
print(myGPIO.in_status_4 == myGPIO.GPIO_LO, end=" ")
print("GPIO 5:", end=" ")
print(myGPIO.in_status_5 == myGPIO.GPIO_LO, end=" ")
print("GPIO 6:", end=" ")
print(myGPIO.in_status_6 == myGPIO.GPIO_LO, end=" ")
print("GPIO 7:", end=" ")
print(myGPIO.in_status_7 == myGPIO.GPIO_LO)
time.sleep(.25)

if __name__ == '__main__':
Expand Down

0 comments on commit 7981e74

Please sign in to comment.