You'll probably need a longer timeout than 1000.
That would only be 10mS that it waits.
Maybe try 10000?
Fool around with it a bit. It needs to be long enough to see the whole pulse, but short enough that it doesn't waste excessive time waiting.
steve




Bookmarks