I have a IR photo gate sensor that I have attached to my Raspberry Pi, and it is working nicely as I test with WebIOPi and a C program using the wiringPi library.
I would like to use some other languages to access this device while making use of the same kind waitForInterrupt() functionality made available by wiringPi. I haven't found any tutorials that show how to block waiting for an interrupt in Python or (I know this one is a long shot) Erlang.
Does anyone know how to do this, or can you point me at instructions? I suppose I could always call out to C code to do that blocking, but I am hoping I can avoid that.
If it helps or you're curious, I am working on a project like this one: http://www.sparkfun.com/tutorials/131, and I don't think a polling approach will give me the kind of results I want.