So basically I want to be able and trigger on both edges.
At the top of the file I have this code to trigger on digital in 1, rising edge:
digio.line[1].mode = digio.MODE_TRIGGER_IN
trigger.digin[1].edge = trigger.EDGE_RISING
But it seems that if I insert a similar line to #2 with EDGE_FALLING inside the trigger model it does not do anything.
Anyone knows how should I do this?