Is your circuit 24v (+12v and -12v) or is that -12v intended to be a ground?
The more I stare at the spark fun gizmo above I think it would work. Looks like it designed to use the GPIO's as outputs not inputs. Not sure if it would work the other way around.