-
Try working with just one think (say headlight) at a time. Get that running then extend it to cover the other things.
-
I don't think you can do this
attachPcInterrupt(headlightInput,headlightOn,RISING);
attachPcInterrupt(headlightInput,headlightOff,FALLING);
Does the documentation explicitly say that you can have more that one interrupt attached to a pin AT THE SAME time?
Mark