1
0
mirror of https://github.com/xtacocorex/CHIP_IO synced 2025-07-20 12:53:22 +00:00

Inital attempt at fixing #9. Things are still broken. wait_for_edge no longer works on AP-EINT1/3, XIO will trigger only one on falling edge.

This commit is contained in:
Robert Wolterman
2016-07-10 14:56:40 -05:00
parent a9a2dbf862
commit db4493322d
4 changed files with 126 additions and 9 deletions

View File

@ -22,7 +22,7 @@ loopfunction_exit = False
def loopfunction():
print("LOOP FUNCTION")
for i in xrange(4):
for i in xrange(6):
if loopfunction_exit:
break
if i % 2:
@ -124,6 +124,7 @@ loopfunction()
mystr = " num_callbacks = %d" % num_callbacks
print(mystr)
print("\nWAIT FOR EDGE TESTING")
print("PRESS CONTROL-C TO EXIT IF SCRIPT GETS STUCK")
GPIO.remove_event_detect("XIO-P2")
try: