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:
@ -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:
|
||||
|
Reference in New Issue
Block a user