Has anyone implemented an "out of filament" switch for their Printrbot Simple?

Has anyone implemented an “out of filament” switch for their Printrbot Simple? There’s an “E-Stop” connector not being used. I’d like to wire a normally open switch to it and have Repetier Host pause and lift the print head if the line goes high.

I think I got the mechanical part figured out in my head - I’m going to thread the filament under/over/under 3 bearings, with the middle bearing on a micro switch. The bearings will be close enough that the natural stiffness of pla will push the middle bearing against the switch. As the last of the filament passes through the switch spring will push back and toggle the logic.

What I want to know is: has anyone used the e-stop input to trigger a normal pause in Repetier?

While repetier-host is a Terminal application, only reacting to status messages on the serial line, I think you will have to add the desired functionality to your printers firmware first.

You might check the latest Marlin development. There might be a filament out feature in there, I forget. If so, then you just assign the desired input pin.