I have this LED strip
And it has a packaged PWM dimmer module and remote. What I would like to do (if possible) is cut off the IR receiver and plug it right into a data out pin on my Spark, and then take the IR receiver and reuse it into an input on the Spark. Basically allowing the Spark to be a middle man between the IR receiver and the dimmer module. This way I can use the remote to control the strip or the Spark.
Can I accomplish this just by using the IR library? I know IR is supposed to be PWM converted to IR light, is this correct?
Would I only wire up the spark to the ground reference and data pin, leaving the power pin from the dimmer module alone?